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

Commit

Permalink
📝 Issue #1407: Uncaught (in promise): Error: Push plugin not found!
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Jan 30, 2017
1 parent 00c67cb commit adf3eab
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/PHONEGAP_BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
}
```

0 comments on commit adf3eab

Please sign in to comment.