flutter_app_badger
flutter_app_badger copied to clipboard
Show badge with closed app
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.
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?
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.
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.
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.
MI 8 Lite Not supported
also not supported on vivo device.