how to update the badge number in android ?

Hi All,

is it possible to update the badge number on the application using GameThrive push notifications ? I saw some comments that badge notification only supported in IOS… If it is true , it is related to limitation in Corona or in Android…

if someone has a way to it for both IOS/Android , I appreciate sharing that.

Regards

Abdul

This is true and its because Android does not support badge numbers. Nothing to do.

but I noticed some apps in my phone(android) are having the badge, :mellow:

maybe this is resolved in the new android version…

This does not appear to be supported in stock Android.  There are some addons that some device makers that seem to support badges and perhaps the Facebook app detects these one-off’s and takes advantage of them.

Rob

Rob ,

I noticed also this the email app in the android, and other such as Whatsup  ( chat app)… how do you think these app can leverage the addons available… also do you think corona can communicate with these addon or we have use native calls …

thanks

Abdul

I don’t see any badges in the gMail app, mail app, facebook app or any others that should have activity on my Nexus 7 running 4.4.2 stock.  I doubt we will be adding any support for these add-ons.  You probably could through native, but it’s not something we are going to be able to support.

Rob

I am using Galaxy SII with android 4.1.2 … I have badge in some apps such as messaging (sms), email and whatsup… see the snapshot…

http://postimg.org/image/f3ffibwi9/

http://postimg.org/image/vjl4i1dr7/

also I noticed that I can load snapshot in this forum unless less than 14 bytes… is this something new because I didn’t notice it in the past… I think it is too little for images…

Regards

Abdul

I might be wrong … it is about new messages under that app… is it conidered a push notification or not ?? If not … how to do it ??
Regards
Abdul

On iOS, its simply a matter of calling the right functions, and Corona Labs supports it:  native.getProperty() and native.setProperty() (see: Badges can be set for other things that are not push or local notification uses, like new emails, twitter replies, facebook status updates, etc. (even though I’m pretty sure the last two are actually push notifications that are badge only…).

Android (the stock version that Google produces) does not in any shape or form support badges.  What you are seeing is one of three things:

1.  It’s a widget, not an icon.  These would be on the home screen, not under the screen’s with all the icons.

2.  The app is using some 3rd party add-on like Nova Launcher.  (See: http://forums.androidcentral.com/android-applications/199709-how-guide-global-badge-notifications.html)..)

3.  Samsung and Sony seem to have provided some add-on support for their versions of Android.  They take the Google version then make their own version with the features they want.  (See: http://stackoverflow.com/questions/17510419/how-does-facebook-add-badge-numbers-on-app-icon-in-android and scroll down to the bit about Sony and http://stackoverflow.com/questions/2905542/is-there-a-way-to-add-a-badge-to-an-application-icon-in-android/20213081#20213081 for the bit about Samsung)

From our perspective, to try and support vendor specific features like these, or 3rd party add-ons is not something our small staff of Engineers can take on.  There are bigger, more important features that our community needs.  If this is really important to you, then you could consider upgrading to an Enterprise license and making the calls yourself into native land to do this.   You could also ask someone to build a plugin for you that does this and add it to the 3rd party plugin store.

If you want to read more about this topic, feel free to goto http://google.com and search for:   android badge numbers

The first 5 hits should do the trick.

Rob

Thanks Rob for the detailed explanation , it looks I am always having huge hope big dreams that are not yet there in corona world and it looks straight foreword to me :slight_smile:

Appreciate your time in this post.

Abdul

This is true and its because Android does not support badge numbers. Nothing to do.

but I noticed some apps in my phone(android) are having the badge, :mellow:

maybe this is resolved in the new android version…

This does not appear to be supported in stock Android.  There are some addons that some device makers that seem to support badges and perhaps the Facebook app detects these one-off’s and takes advantage of them.

Rob

Rob ,

I noticed also this the email app in the android, and other such as Whatsup  ( chat app)… how do you think these app can leverage the addons available… also do you think corona can communicate with these addon or we have use native calls …

thanks

Abdul

I don’t see any badges in the gMail app, mail app, facebook app or any others that should have activity on my Nexus 7 running 4.4.2 stock.  I doubt we will be adding any support for these add-ons.  You probably could through native, but it’s not something we are going to be able to support.

Rob

I am using Galaxy SII with android 4.1.2 … I have badge in some apps such as messaging (sms), email and whatsup… see the snapshot…

http://postimg.org/image/f3ffibwi9/

http://postimg.org/image/vjl4i1dr7/

also I noticed that I can load snapshot in this forum unless less than 14 bytes… is this something new because I didn’t notice it in the past… I think it is too little for images…

Regards

Abdul

I might be wrong … it is about new messages under that app… is it conidered a push notification or not ?? If not … how to do it ??
Regards
Abdul

On iOS, its simply a matter of calling the right functions, and Corona Labs supports it:  native.getProperty() and native.setProperty() (see: Badges can be set for other things that are not push or local notification uses, like new emails, twitter replies, facebook status updates, etc. (even though I’m pretty sure the last two are actually push notifications that are badge only…).

Android (the stock version that Google produces) does not in any shape or form support badges.  What you are seeing is one of three things:

1.  It’s a widget, not an icon.  These would be on the home screen, not under the screen’s with all the icons.

2.  The app is using some 3rd party add-on like Nova Launcher.  (See: http://forums.androidcentral.com/android-applications/199709-how-guide-global-badge-notifications.html)..)

3.  Samsung and Sony seem to have provided some add-on support for their versions of Android.  They take the Google version then make their own version with the features they want.  (See: http://stackoverflow.com/questions/17510419/how-does-facebook-add-badge-numbers-on-app-icon-in-android and scroll down to the bit about Sony and http://stackoverflow.com/questions/2905542/is-there-a-way-to-add-a-badge-to-an-application-icon-in-android/20213081#20213081 for the bit about Samsung)

From our perspective, to try and support vendor specific features like these, or 3rd party add-ons is not something our small staff of Engineers can take on.  There are bigger, more important features that our community needs.  If this is really important to you, then you could consider upgrading to an Enterprise license and making the calls yourself into native land to do this.   You could also ask someone to build a plugin for you that does this and add it to the 3rd party plugin store.

If you want to read more about this topic, feel free to goto http://google.com and search for:   android badge numbers

The first 5 hits should do the trick.

Rob

Thanks Rob for the detailed explanation , it looks I am always having huge hope big dreams that are not yet there in corona world and it looks straight foreword to me :slight_smile:

Appreciate your time in this post.

Abdul