Even after making backgroundHandler a top level function still throwing an error as needs to be either a static function or a top level function
I tried both as making firebaseMessagingBackgroundHandler
to a top level function and then tried with making it as static. In both the cases it throws the same error as it needs to be either a static function or a top level function.
Duplicate Notification is coming for flutter local notification when the app is in background mode. How to solve?
I have a dashboard screen where in the initState I am initializing the Firebase notification and local notification. When the app is foregrounded it’s getting the local notification and getting the notification correctly. But when the app is backgrounded then it’s getting two notifications one from the firebaseMessaging and another from the local notification which is kind of duplicate and false. I want to get rid of it and want only the Firebase messaging to work when the app is backgrounded.
Duplicate Notification is coming for flutter local notification when the app is in background mode. How to solve?
I have a dashboard screen where in the initState I am initializing the Firebase notification and local notification. When the app is foregrounded it’s getting the local notification and getting the notification correctly. But when the app is backgrounded then it’s getting two notifications one from the firebaseMessaging and another from the local notification which is kind of duplicate and false. I want to get rid of it and want only the Firebase messaging to work when the app is backgrounded.