I'm trying to implement Push Notifications into an Ionic 2 app using the official documentation.
I have included the phonegap-plugin-push plugin, but when I insert the code they give you (wrapped in a platform ready function), like so:
this.platform.ready().then(() => {
var push = Push.init({
android: {
senderID: "12345679"
},
ios: {
alert: "true",
badge: true,
sound: 'false'
},
windows: {}
});
});
I just get the following error:
ORIGINAL EXCEPTION: ReferenceError: Push is not defined
Is there something else I need to do or is it not yet possible to use Push inside an Ionic 2 app?
Thanks for any help.