diff --git a/README.md b/README.md index 229e3fef8..7f7d62504 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ phonegap plugin add https://github.com/phonegap/phonegap-plugin-push ## Quick Example -``` +```javascript var push = PushNotification.init({ "android": {"senderID": "12345679"}, "ios": {}, "wp": {"channelName": "12345679"} } ); @@ -55,6 +55,11 @@ phonegap plugin add https://github.com/phonegap/phonegap-plugin-push Parameter | Description --------- | ------------ `options` | `JSON Object` platform specific initialization options. +`options.android` | `JSON Object` Android specific initialization options. +`options.android.senderID` | `String` Maps to the project number for in the Google Developer Console. +`options.ios` | `JSON Object` iOS specific initialization options. +`options.wp` | `JSON Object` Windows specific initialization options. +`options.wp.channelName` | `String` Channel URI from Microsoft. #### Returns diff --git a/src/android/com/adobe/phonegap/push/GCMIntentService.java b/src/android/com/adobe/phonegap/push/GCMIntentService.java index 6e20772aa..fdb88bc46 100644 --- a/src/android/com/adobe/phonegap/push/GCMIntentService.java +++ b/src/android/com/adobe/phonegap/push/GCMIntentService.java @@ -135,4 +135,4 @@ public void onError(Context context, String errorId) { Log.e(LOG_TAG, "onError - errorId: " + errorId); } -} +} \ No newline at end of file