flutter_app_badger icon indicating copy to clipboard operation
flutter_app_badger copied to clipboard

Show badge with closed app

Open rafaeldalbosco opened this issue 6 years ago • 6 comments

I'm using your plugin, it works correctly on iOS but only if I get the push notifications with the app open, do you have any solution for when I get with the app closed?

I'm using Firebase for push notification.

rafaeldalbosco avatar Feb 14 '19 13:02 rafaeldalbosco

Hello,

Could you elaborate a bit more? What is happening when the app is closed? What should it do? Which method(s) do you call on this plugin?

g123k avatar Feb 14 '19 18:02 g123k

When I minimize the app in iOS, often (but not always), the badge disappears. It then reappears as I'm tapping on the icon, before the app comes back alive. Is it being disposed of unintentionally perhaps? I also have FCM updating the badge successfully via Cloud Function when a new record is inserted, so it could be in the interplay between these two implementations that's causing the blip? Let me know what else I can provide you that might help in hunting down the bug.

gitmoto avatar Mar 07 '19 22:03 gitmoto

Hello,

On your case @gitmoto, it seems to be a problem related to FCM. This plugin is only calling the iOS API when you call the method. Otherwise nothing is happening.

g123k avatar Mar 08 '19 21:03 g123k

thanks for letting me know! after more research, it might even be a bug within iOS that doesn't keep the badge consistently visible immediately after backgrounding an app that recently received a push notification with a badge update in it. This happens on other apps, not just the one I'm developing and testing locally.

gitmoto avatar Mar 09 '19 16:03 gitmoto

MI 8 Lite Not supported

henry0510 avatar May 31 '19 02:05 henry0510

also not supported on vivo device.

parth22 avatar Aug 26 '19 04:08 parth22