Page 1 of 3

android pushnotifications badge

Posted: Wed May 15, 2013 11:43 pm
by steve5588065

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


android pushnotifications badge

Posted: Wed May 15, 2013 11:57 pm
by Igor

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...


android pushnotifications badge

Posted: Thu May 16, 2013 12:59 am
by steve5588065

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


android pushnotifications badge

Posted: Thu May 16, 2013 1:53 am
by Igor

Working on it. I'll update.


android pushnotifications badge

Posted: Thu May 16, 2013 3:21 pm
by Maryna Brodina

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


android pushnotifications badge

Posted: Thu May 16, 2013 9:22 pm
by Maryna Brodina

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


android pushnotifications badge

Posted: Thu May 16, 2013 10:22 pm
by steve5588065

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


android pushnotifications badge

Posted: Fri May 17, 2013 10:39 am
by Kateryna Grynko

Hi Steve,

Sorry for delay, we're working on it.


android pushnotifications badge

Posted: Sun May 19, 2013 1:50 pm
by Emmz

Would be interested in this as well.


android pushnotifications badge

Posted: Mon May 20, 2013 4:04 pm
by Kateryna Grynko

Hi Steve, Neil,

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