diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
| commit | 22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch) | |
| tree | 5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md | |
| parent | d22d51a1ae49680015326857360eb699f31efced (diff) | |
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md')
| -rw-r--r-- | StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md b/StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md deleted file mode 100644 index 8481e7bc..00000000 --- a/StoneIsland/plugins/phonegap-plugin-push/docs/EXAMPLES.md +++ /dev/null @@ -1,43 +0,0 @@ -# Creating a Project From a Template - -If you want to get started with a sample project you can create a new project from the example template. - -``` -phonegap create my-app --template phonegap-template-push -``` - -## Quick Example - -```javascript -var push = PushNotification.init({ - android: { - senderID: "12345679" - }, - browser: { - pushServiceURL: 'http://push.api.phonegap.com/v1/push' - }, - ios: { - alert: "true", - badge: "true", - sound: "true" - }, - windows: {} -}); - -push.on('registration', function(data) { - // data.registrationId -}); - -push.on('notification', function(data) { - // data.message, - // data.title, - // data.count, - // data.sound, - // data.image, - // data.additionalData -}); - -push.on('error', function(e) { - // e.message -}); -``` |
