diff --git a/docs/PHONEGAP_BUILD.md b/docs/PHONEGAP_BUILD.md index 58341ed6f..07abba493 100644 --- a/docs/PHONEGAP_BUILD.md +++ b/docs/PHONEGAP_BUILD.md @@ -4,6 +4,7 @@ - [Including the plugin](#including-the-plugin) - [Adding Resources](#adding-resources) - [IntelXDK Support](#intelxdk-support) +- [Ionic Cloud Build](#ionic-cloud-build) ## PhoneGap Build Support @@ -91,3 +92,25 @@ f. you probably need to install the required gem (`gem install pushmeup`) g. send the notification (`ruby pushAPNS.rb`) 10. See notification on device! + +## Ionic Cloud Build + +Users have reported issues with Ionic Cloud Build. Apparently there are some differences in the way variables are handled. If your app has an issue where the `PushNotification` object can't be found try the following. + +1. Remove the inclusion of `phonegap-plugin-push` from config.xml. That is delete lines that look like this: + +``` + + + +``` +2. Add the following lines into `package.json` in the `cordovaPlugins` array. + +``` +{ + "variables": { + "SENDER_ID": "xxx" + }, + "locator": "phonegap-plugin-push" +} +```