Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

update badge number even if the app is totally closed #1027

Closed
alaa-alshamy opened this issue Jun 27, 2016 · 5 comments
Closed

update badge number even if the app is totally closed #1027

alaa-alshamy opened this issue Jun 27, 2016 · 5 comments

Comments

@alaa-alshamy
Copy link

On ios this is so simple we can just calc the badge number on the server and add badge payload to the notification we send

but is there any thing like "badge" payload in android to update badge number from os? because i need to update it even if the app is totally closed

any help please

@macdonst
Copy link
Member

@alaa-alshamy if you send msgcnt, badge or count in the data object of your payload it should work in the background as long as your device is supported by shortcutbadger. Give it a try and let me know and I will officially document it.

@alaa-alshamy
Copy link
Author

thanks man, it's work like a charm.

go ahead and document it 👍

@ravisuryawanshi
Copy link

android-badgecount on notifications
Hi,

I am getting badge count on the notification bar. I am not sure why it is coming. Can anyone help me?

Thanks
Ravi

@alaa-alshamy
Copy link
Author

alaa-alshamy commented Feb 9, 2017

@ravisuryawanshi i asked same question before in another issue, check it out: #1096

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants