summaryrefslogtreecommitdiff
path: root/StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md')
-rw-r--r--StoneIsland/plugins/phonegap-plugin-push/docs/PHONEGAP_BUILD.md29
1 files changed, 26 insertions, 3 deletions
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
<preference name="android-build-tool" value="gradle" />
<plugin name="phonegap-plugin-push" source="npm">
- <param name="SENDER_ID" value="<Your Sender ID>" />
+ <param name="SENDER_ID" value="123456789" />
</plugin>
```
@@ -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:
+
+```
+<plugin name="phonegap-plugin-push" spec="~1.9.1">
+ <variable name="SENDER_ID" value="xxx"/>
+</plugin>
+```
+2. Add the following lines into `package.json` in the `cordovaPlugins` array.
+
+```
+{
+ "variables": {
+ "SENDER_ID": "xxx"
+ },
+ "locator": "phonegap-plugin-push"
+}
+```