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
[firebase_messaging] Please add, subscribed and unsubscribe with a specific callback, where you can find out if it was done with successes or mistakes.
#3785
Closed
Romavic opened this issue
Oct 6, 2020
· 3 comments
· Fixed by #4012
The text was updated successfully, but these errors were encountered:
helenaford
changed the title
Please add, subscribed and unsubscribe with a specific calback, where you can find out if it was done with successes or mistakes.
[firebase_messaging] Please add, subscribed and unsubscribe with a specific callback, where you can find out if it was done with successes or mistakes.
Oct 6, 2020
Hey, not sure about the current version, but in the rework (which is in progress), if they fail an error will be thrown. The behaviour is described in the native docs For cases where the subscription cannot be completed, the subscription throws an error that you can catch...
I believe this way is preferred way to see the error from native sdk. Also, keeps in line with the rest of the plugins and the API.
https://github.com/FirebaseExtended/flutterfire/blob/7825d3e55cdcad498278640998a53850ac821229/packages/firebase_messaging/lib/firebase_messaging.dart#L153
https://github.com/FirebaseExtended/flutterfire/blob/7825d3e55cdcad498278640998a53850ac821229/packages/firebase_messaging/lib/firebase_messaging.dart#L158
The text was updated successfully, but these errors were encountered: