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

Push notifications on production

$
0
0

@arilishu wrote:

hi all!
I am starting using this platform and working with push notifications.
When i go to production, setting "ionic config set dev_push false" if i try the method:
push.register(function(token) {
saveDeviceID(token.token );
console.log("Device token:",token.token);
});

i have this error Uncaught ReferenceError: PushNotification is not defined.
So, let's asume that is ok, because i am not on development anymore.

But after that, i create the APK.
(it's like 5 minutes, ok!!)

And when i open the app on my phone (first in android), the deviceID is not saved.
So i don't know what to do.
There is no information on the site about this kind of problem on production.

Do you have any idea, what's next step?

Thanks!

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>