You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clearAllNotifications method is attempting to modify the user interface from a background thread. This operation should only be performed on the main thread.
src/ios/FCMPlugin.m - line 98
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
// Ensure UI updates are made on the main thread
dispatch_async(dispatch_get_main_queue(), ^{ [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; });
• The dispatch_async(dispatch_get_main_queue(), ^{...}); block ensures that setApplicationIconBadgeNumber: is called on the main thread.
• The rest of the code, including logging and sending the plugin result, runs in the background.
The text was updated successfully, but these errors were encountered:
Describe the bug
clearAllNotifications method is attempting to modify the user interface from a background thread. This operation should only be performed on the main thread.
src/ios/FCMPlugin.m - line 98
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
The text was updated successfully, but these errors were encountered: