Software Archive
Read-only legacy content
17061 Discussions

IOS Problem with phonegap-plugin-push

Maurizio_B_1
Beginner
696 Views

Hi all,

I add phonegap-plugin-push in my app. With android (phonegap-plugin-push version 1.2.1) no problem. In IOS I receive this error in debug tab:

ReferenceError: Can't find variable: PushNotification

I try to digit PushNotification  in console and I obtain the same error.

I try also 1.4.2 version of phonegap-plugin-push, but it don't work.

Any idea?

Thanks,

Maurizio

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
696 Views

Does it work if you use version 1.2.3 of phonegap-plugin-push? 1.3.0 will not build for Android and Crosswalk, thus the reason I recommend trying 1.2.3.

0 Kudos
PaulF_IntelCorp
Employee
696 Views

Are you adding plugins using the plugin manager on the Projects tab? Do not use the additions file to add plugins.

Based on your image I'm guessing that you've either added every plugin in the core and xdk list OR you canceled the debug module build and you're running the generic debug module, which will not contain any third-party plugins.

  • use only plugin manager to add your plugins
  • let the Debug tab build a custom debug module to get third-party plugin support
0 Kudos
Maurizio_B_1
Beginner
696 Views

Hi Paul, 

I used the plugin manager to add the plugins.The  same project in android works well. How I can let the Debug tab build a custom debug module to get third-party plugin support?

In android debug when I install a new plugin the debug module upload the plugin in the server,conversely in ios debug nothing happens and the debug start immediately. Are there step which I forget?

 

Thanks,

Maurizio

0 Kudos
PaulF_IntelCorp
Employee
696 Views

That doc page is correct. Custom debug modules are only supported on Android devices. We plan to support this feature on iOS devices in a future release, but today debugging third-party plugins with iOS is only possible by building the app and installing it on an iOS device. See this doc page for additional debug options: https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview

0 Kudos
Reply