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

Ionic-native cordova error

$
0
0

@kevhouck wrote:

I am trying to use Push notifications in an Ionic 2 ts project. I have followed the quick guide in this post to get webpack working:


Now when I try to call Push.init, it does so and then gives this warning message

Native: tried calling Push.init, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

when I use ionic serve. Even when I uncomment the cordova.js script html tags I get this error. I understand that Push notifications haven't been tested in Ionic 2 but I think this is related to something else since the error is about cordova. How can I get ionic-native to see cordova?

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>