Rakesh Jaligama
Posts: 0
Joined: Thu Jan 15, 2015 9:37 pm

Push Notification

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Push Notification

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.

Rakesh Jaligama
Posts: 0
Joined: Thu Jan 15, 2015 9:37 pm

Push Notification

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Push Notification

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.

Return to “Issues”