steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

android pushnotifications badge

i use Appery Push Notification test page to send Messages to Android

My android device receives the notification but there is no Badge number even though I enter 1 in badge box on test screen

I have an alert which shows the incoming data from android gcm

var data = arguments[0].originalEvent.notification;
var notifs = JSON.stringify(data);
alert(notifs);

Result displayed in alert...
{"aps":{"alert":"test"}}

When I send it to iOS it works perfectly

what am I doing wrong?

regards
Steve

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

android pushnotifications badge

It's difficult to say what you are doing wrong.
Please follow our tutorial and check step by step Android configuaration for Push notifications.
http://docs.appery.io/tutorials/sendi...

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

android pushnotifications badge

Hi Igor

I have followed the tutorial

Like I said it works for iOS Push. I can read the badge by using
data.aps.badge

but in android this returns null even though I enter badge 1 in Appery Push test screen

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

android pushnotifications badge

Working on it. I'll update.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

android pushnotifications badge

Hello! It's a bug. We'll fix it.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

android pushnotifications badge

Sorry for incorrect information, the problem is that it's not supported by android yet so there is nothing we can do.

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

android pushnotifications badge

Hi Marina

Thanks for that

Android has an optional extras section in their pushnotification
It is apparently a key/value listing set by the sender

How can I read those values when notification is received??

regards
Steve

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

android pushnotifications badge

Hi Steve,

Sorry for delay, we're working on it.

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

android pushnotifications badge

Would be interested in this as well.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

android pushnotifications badge

Hi Steve, Neil,

We'll add "badge" parameter in the next Appery.io release.

Return to “Issues”