Software Archive
Read-only legacy content
17061 Discussions

Implementing JPush Cordova Plugin on iOS - How to modify AppDelegate.m file?

Daniel_B_3
Beginner
320 Views

I have successfully got JPush working on Android, but it seems that in order to get the plugin working on iOS, some additional steps must be followed.

https://github.com/jpush/jpush-phonegap-plugin

Step 5 under "iOS添加初始化JPush sdk代码 如果你要先部署android平台,可以先忽略这一步,当需要iOS 平台时,只加上这个步骤即可"

It seems that they are asking to add

#import "APService.h"
#import "JPushPlugin.h"

to the AppDelegate.m file, along with some more code

How would I do this in an XDK project? I have access to a Mac, if that helps.

Thank you for your time

0 Kudos
2 Replies
John_H_Intel2
Employee
320 Views

You do not need to do anything with the .h files.

In the XDK, under the Project settings, you will need to add a 3rd party plugin from the web. See the attached image for the values you are looking for. You will need to see the plugin documentation for more specifics about how to use the plugin.

 

0 Kudos
Daniel_B_3
Beginner
320 Views

JOHN H. (Intel) wrote:

You do not need to do anything with the .h files.

In the XDK, under the Project settings, you will need to add a 3rd party plugin from the web. See the attached image for the values you are looking for. You will need to see the plugin documentation for more specifics about how to use the plugin.

 

I am adding the files locally due to it being necessary for me to modify the plugin.xml file to input my push AppKey.

If I do not need to modify any additional files for iOS, then perfect! Thanks for making this easy.

Warm regards

0 Kudos
Reply