Page 1 of 1

Push Notification

Posted: Wed Feb 04, 2015 9:36 pm
by Rakesh Jaligama

How to store the Notifications in the application using appery.io?


Push Notification

Posted: Thu Feb 05, 2015 3:32 am
by Yurii Orishchuk

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.


Push Notification

Posted: Thu Feb 05, 2015 9:52 pm
by Rakesh Jaligama

I want to store all the push notifications in my application. If there are unread notifications then it should be shown on icon, like red one on the icon(for better example please look at image). Image


Push Notification

Posted: Fri Feb 06, 2015 2:40 pm
by Evgene Karachevtsev

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.