Badge icon indicating copy to clipboard operation
Badge copied to clipboard

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

Open thebingi opened this issue 7 years ago • 2 comments

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

thebingi avatar Dec 07 '17 20:12 thebingi

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

alexrainman avatar Dec 07 '17 21:12 alexrainman

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

thebingi avatar Dec 07 '17 23:12 thebingi