-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS: Plugin does not start #404
Comments
@kaynz Did you wait for the |
Yes. |
@kaynz then it seems like something went wrong in the installation. Open the /platforms/ios folder and see if the push.js file got copied over correctly. Also, check to make sure that the platforms/ios has cordova_plugins.js has an entry for PushNotification as well. |
Should it be exactly in /platforms/ios or any subdir? Can't find a Push.js in /platforms/ios |
@kaynz the files would be at: platforms/ios/www/plugins/phonegap-plugin-push/www/push.js |
Okay, got em. There is no phonegap-plugin-push folder in www/plugins. And there is no reference to push in cordova_plugins.js |
@kaynz right so it seems like it never got installed for iOS which is weird in itself. Do:
to force it to be installed. If that fixes your problem please close this issue. |
Just noticed that Im getting following error at cordova plugin add phonegap-plugin-push:
npm install cordova-common solved this. But got another bug, will post it in a few min. |
Okay, the bug is as following: |
@kaynz can you let me know exactly what version of cordova/phonegap you are using and the detailed steps to reproduce the issue? I want to see if this is a bug in Cordova CLI. |
cordova 5.4.1
Should do it |
@macdonst By the way, metadata is now generated mainly to Also, I'm pretty sure that's an issue with a bad installation of cordova by npm. Can you please try the following?
|
I cleaned up:
Installed cordova:
After that, I added ios platform:
As you can see in the logs, the push plugin is fully ignored Here is my fetch.json:
|
I think the problem is that you are not saving on the config.xml file when installing the plugin. |
Okay, this
resulted into
in config.xml But the plugin is still missing after platform rm/add. |
It should say something in the log, an attempt to install it, if it is on the config.xml file. |
@kaynz after you do a |
Files are still missing after cordova build ios =/ |
Interesting: If I run following on my windows machine, it's working: (previous was on mac)
result:
|
Something wrong with the plugins/ folder perhaps.
|
Thanks.
worked. I can platform rm/add as much as I want now. |
This thread has been automatically locked. |
Trying to init PushNotification (after deviceready):
results to:
Setup: fresh installation of cordova-ios@3.9.2, phonegap-plugin-push (1.4.5)
Tried on iPhone 6s iOS 9.1 and iPhone 5 iOS 8.4.1 (both on UiWebView)
Other plugins:
xcode console output:
Same setup works very good on android.
Any ideas?
The text was updated successfully, but these errors were encountered: