Hi guys, can you tell me how to implement Push Notification in Ionic2. I tried ionic-cloud-angular, do these instructions but no push notifications came my device. Tell me URL of instruction if you have, thanks!
# Typescript definition file
For those of you who use typescript, we're glad to say that we have the complete definition file available at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped).
Search for `phonegap-plugin-push` there, or simply grab it directly [here](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/phonegap-plugin-push/index.d.ts).
## Example usage
All objects will be understood as having a defined type, including init options and eventHandler parameters.
All available attributes and properties will have autocomplete support and type checkings.
```typescript
const push = PushNotification.init({
android: {
},
ios: {
alert: "true",
badge: true,
sound: 'false'
},
windows: {}
This file has been truncated. show original
Use together Google Cloud Message.
I also faced difficulties implementing push notification. When I got it working, I wrote a small tutorial to help others. See if this is useful.
Hello all Ionites!
Push notifications are awesome. Everyone wants to implement them but implementing push notification in iOS or Android can be quite difficult without good tutorial. After asking so many forum/stackoverflow questions, I’m finally able to implement push notifications for both iOS and Android using APNS and FCM(earlier known as GCM) respectively.
To help others a little, I wrote down the full steps with screenshot and full code on Github. Below are all the useful links.
G…
2 Likes