Push Notification
How to store the Notifications in the application using appery.io?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
How to store the Notifications in the application using appery.io?
Hi Rakesh,
You can use following JS code in page-"push notifications" event handler:
pre
var currentPush = data.aps.alert;
//Now you can store "currentPush" in way you need.
/pre
Regards.
Hello Rakesh,
You may modify this code
prePushNotification.setApplicationIconBadgeNumber(0, function () {});/pre
Here is the number of badges is set to 0, but you may put any number you need. Also please note that this counter will work only for iOS, for Android you will have to look for and use some appropriate phonegap plugin.