mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
23 lines
1.4 KiB
Markdown
23 lines
1.4 KiB
Markdown
# Install
|
|
|
|
* Add the PushNotification related code from the included AppDelegate files to your project's AppDelegate (see https://github.com/phonegap/phonegap-plugins/commit/47f64eb1dd4b2ca2c2999c022c54b0a3e6726cd2 for a diff)
|
|
* Include PushNotification.js in your WWW folder
|
|
* Add PushNotification.h/m in the Plugins folder
|
|
* Add key "pushnotification" and value "PushNotification" (case-sensitive) to the plugins list in PhoneGap.plist
|
|
* Include the sample index.html or just use the parts you want
|
|
|
|
# Provisioning profiles and XCode4
|
|
|
|
When trying to get this plugin setup I would receive an error: "no valid 'aps-environment' entitlement string found for application". To fix it I had to do the following:
|
|
|
|
* Delete old provisioning profiles from both Library + Device panels in Organizer
|
|
* Regenerate new profile with APN dev enabled from the developer portal website
|
|
* Make sure new profile is added to both Library + Device panels in Organizer
|
|
* Manually delete my app off my device (holding till it jiggles and hitting X)
|
|
* CMD+OPT+SHIFT+K (Clean Build Folder) and CMD+SHIFT+K (Clean)
|
|
* Set the proper profile under Targets > Build Settings > Code Signing
|
|
* Make sure 'Use Entitlements' is not checked under Targets > Summary
|
|
|
|
# Notes
|
|
|
|
This was forked from the now unmaintained https://github.com/urbanairship/ios-phonegap-plugin with the endorsement of the UA engineering team |