Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Failed to get Plugin in 1.9.1 #1463

Closed
p-schuler opened this issue Dec 14, 2016 · 10 comments
Closed

Failed to get Plugin in 1.9.1 #1463

p-schuler opened this issue Dec 14, 2016 · 10 comments

Comments

@p-schuler
Copy link

I already reported the same issue previously, where I wasn't aware of the changed CLI min version requirement (#1343). However, PGB has updated and cli-6.4.0 should work as far as I understand the version requirement. I see the same issue:

Expected Behaviour

I can access window["PushNotification"] after device ready fired.

Actual Behaviour

window["PushNotification"] is always undefined

Steps to Reproduce

Install 1.9.1 as a plugin (I use PhoneGap build for that)
Install the app on the device
check the window["PushNotification"] after deviceready fired

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iOS 10.1.1

Cordova CLI version and cordova platform version

cordova platform version ios 4.3.0
phonegap: cli-6.4.0

Plugin version

1.9.1

@fredgalvao
Copy link
Collaborator

Do you have any logs from PGB showing any installation/build error?

@macdonst
Copy link
Member

@debugErr yeah, it's not that easy. Updates need to be done to support Cocoapods, etc. That's why I document it is not supported for 1.9.0+

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PHONEGAP_BUILD.md#phonegap-build-support

@p-schuler
Copy link
Author

Thanks for the update and sorry for not seeing the updated PGB specific documentation.

There is another issue on PGB with building iOS and the notification plugin (https://forums.adobe.com/message/9200149#9200149). It's a bit a mess at the moment.

@frederikbosch
Copy link

@macdonst I understand. Updates need to be done. But at the moment there is - to my understanding - no way to get push running. Version 1.8.4 has iOS problems and version 1.9.x cannot be used with PGB. That leaves users at nothing. Hope the issue can be resolved.

@frederikbosch
Copy link

For those who want to build with PGB see my comment here.

@macdonst
Copy link
Member

@debugErr @frederikbosch the PGB team did some upgrades yesterday. Please give it a try and report back if the issue is now fixed.

@p-schuler
Copy link
Author

@macdonst The changes they made was to fix the problem with the entitlement file that caused it to fail on recent iOS build (phonegap/build#485 (comment)). Unfortunately the problem with the Cocoapods and building 1.9x on PGB has not been resolved.

@macdonst
Copy link
Member

@debugErr the Cocoapods issue should have been fixed awhile ago. They are running a pod sync twice a day in order to stay up to date on the build machines.

@cagb80
Copy link

cagb80 commented Jan 1, 2017

I solved this problem.

  1. Uninstall Pod Pre Release, you will need only CocoaPod 1.1.1
  2. Create the Cordova Project
  3. Add the iOs Platform, latest one.
  4. Add the plugin, even the error.
  5. Go to platforms/ios folder and run the command pod install
  6. If you get an error of Nanaimo, uninstall all Nanaimo: sudo gem uninstall Nanaimo, select All Nanaimo versions
  7. Reintal Nanaimo sudo gem install nanaimo
  8. Run pod install
  9. Go to your Cordova folder and build your project
  10. Say thank you :P

@macdonst macdonst closed this as completed Apr 3, 2017
@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

5 participants