flutter_app_badger icon indicating copy to clipboard operation
flutter_app_badger copied to clipboard

iOS error when using firebase message after switching to the background 2 times

Open lessthanno opened this issue 4 years ago • 5 comments

iOS error when using firebase message after switching to the background 2 times,the badger will disappear !

lessthanno avatar Apr 15 '20 06:04 lessthanno

Hello,

This is normal, because the firebase messaging SDK also edit the badge. That's why the two plugin may not work well together

g123k avatar Apr 15 '20 08:04 g123k

Hello,

This is normal, because the firebase messaging SDK also edit the badge. That's why the two plugin may not work well together

But firebase cannot display forever badger!!!!OMG !! Can i have any way to solve it??

lessthanno avatar Apr 15 '20 08:04 lessthanno

@lessthanno This isn't a perfect solution, but you can solve this problem by commenting out the following lines in firebase_messaging/ios/Classes/FLTFirebaseMessagingPlugin.m

application.applicationIconBadgeNumber = 1;
application.applicationIconBadgeNumber = 0; 

randyhammond avatar May 05 '20 00:05 randyhammond

@lessthanno This isn't a perfect solution, but you can solve this problem by commenting out the following lines in firebase_messaging/ios/Classes/FLTFirebaseMessagingPlugin.m

application.applicationIconBadgeNumber = 1;
application.applicationIconBadgeNumber = 0; 

Where is this file I cannot find it

evripidesk avatar Sep 14 '20 16:09 evripidesk

is there any workaround ??

YoussefGheith avatar Oct 06 '20 20:10 YoussefGheith