From 597fa051833ca3df6eb185c0143ff82e02dacba1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Sep 2017 01:35:13 +0200 Subject: push plugin ugh --- .../phonegap-plugin-push/docs/PHONEGAP_BUILD.md | 29 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md') diff --git a/StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md b/StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md index 8a95d6a1..7f460738 100644 --- a/StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md +++ b/StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md @@ -4,19 +4,20 @@ - [Including the plugin](#including-the-plugin) - [Adding Resources](#adding-resources) - [IntelXDK Support](#intelxdk-support) +- [Ionic Cloud Build](#ionic-cloud-build) ## PhoneGap Build Support -> Currently PhoneGap Build does not support version 1.9.0 of the plugin. Updates are being made to PGB to support the latest release. +> PhoneGap Build now support version 1.9.0 of the plugin. ### Including the plugin -Including this plugin in a project that is built by PhoneGap Build is as easy as adding: +Including this plugin in a project that is built by PhoneGap Build is as easy as adding (replacing `123456789` with your own, that is): ```xml - + ``` @@ -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" +} +``` -- cgit v1.2.3-70-g09d2