Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not adding badge when app is not in memory(terminated). #4

Open
thebingi opened this issue Dec 7, 2017 · 2 comments
Open

Not adding badge when app is not in memory(terminated). #4

thebingi opened this issue Dec 7, 2017 · 2 comments

Comments

@thebingi
Copy link

thebingi commented Dec 7, 2017

Hi was trying to add a badge when my app receives notification. Everything works fine untill I go to task manager and kill the process. Then I get the notification but the badge is not added.
Add badge
GCM -> override void OnMessage(Context context, Intent intent)

Badge removed
MainApplication.cs -> OnActivityResumed

Device
Samsung / SM-G800H
Android : 6.0.1

@alexrainman
Copy link
Owner

You have to implement this in a background service that will run no matter if you close the app.

@thebingi
Copy link
Author

thebingi commented Dec 7, 2017

I tried to switch to another similar package and I was amazed it worked on my device without any changes. https://github.com/wcoder/ShortcutBadger. When the notification toast is created the code is running in the background. Maybe it's just my device :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants