Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Push not defined, PushNotification not defined, Ionic not defined.. What's happening?

$
0
0

@nickkenens wrote:

There is little to no documentation on how to do push notification in Ionic 2.

if there are, would someone be so kind of linking them?

Whenever I try to do anything related to a plugin, I always seem to get undefined errors.

Is this because of it being launched in the browser?

Here's some example code of the undefined error for PushNotifcation using the phonegap-push plugin:

platform.ready().then(() => {
var push = PushNotification.init({
android: {
senderID: "12345679"
},
ios: {
alert: "true",
badge: true,
sound: 'false'
},
windows: {}
});
}

Same thing happens with Ionic, even though the file is imported in index.html & Webpack.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>