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
I have just upgrade the flutter from 2.2.0 to 2.10.5 and After upgrade push notifications on iOS have broken behaviour.
Below are the used firebase packages and their versions before and after the upgrade.
before upgrade:
firebase_messaging: ^7.0.3
After upgrade:
firebase_messaging: ^11.2.14
firebase_core: ^1.15.0
And the above trick worked fine before upgrade and in earlier versions but after upgrading Flutter a weird behaviour I am seeing and that is becoming a huge pain for me
Push notification is received just fine for the first time after app is fresh started
Second time and onwards Native code does receive the notification (Native push life cycle are called as expected) however onMessage (FirebaseMessaging.onMessage.listen(onMessage);)method is never called.
Not sure if its a bug at firebase_messaging side or if I am doing something which is not expected.
Could anyone guide me here? I have been struggling on this for more than a week now.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have just upgrade the flutter from 2.2.0 to 2.10.5 and After upgrade push notifications on iOS have broken behaviour.
Below are the used firebase packages and their versions before and after the upgrade.
before upgrade:
firebase_messaging: ^7.0.3
After upgrade:
firebase_messaging: ^11.2.14
firebase_core: ^1.15.0
flutter pub deps -- --style=compact
flutter doctor
And in our native code we restart the FlutterEngine whenever a new notification is received like this
And the above trick worked fine before upgrade and in earlier versions but after upgrading Flutter a weird behaviour I am seeing and that is becoming a huge pain for me
Push notification is received just fine for the first time after app is fresh started
Second time and onwards Native code does receive the notification (Native push life cycle are called as expected) however onMessage (
FirebaseMessaging.onMessage.listen(onMessage);
)method is never called.Not sure if its a bug at firebase_messaging side or if I am doing something which is not expected.
Could anyone guide me here? I have been struggling on this for more than a week now.
FYI: Android is working as expected
Beta Was this translation helpful? Give feedback.
All reactions