Hi, while onboarding my Flutter app with FCM, I noticed multiple behaviors that differ from what it's written in the documentation. Note that I only tested with iOS so things might behave differently on Android (which would be annoying as I'm expecting Flutter to act the same whatever the platform is).
Calling getToken() never asks for permission, even on first launch when the authorizationStatus is obviously notDetermined. After checking the code nothing seems to request permission so maybe the doc is just not up-to-date.
This callback is never called on app startup. In my opinion, it makes sense to not fire an event if token didn't change since last startup but while testing it was not even triggered on first app launch.
From my understanding, FCM needs to register the APNS token in order to map it to the registration token so any calls before that would fail. I think it would be better to explain that in the documentation with more details around the cases when the APNS token might be null and what to do in this situation. On the latter, would you recommend to retry with an exponential backoff?
Please have a look and update the doc accordingly.
Hi, while onboarding my Flutter app with FCM, I noticed multiple behaviors that differ from what it's written in the documentation. Note that I only tested with iOS so things might behave differently on Android (which would be annoying as I'm expecting Flutter to act the same whatever the platform is).
Calling
getToken()
never asks for permission, even on first launch when theauthorizationStatus
is obviouslynotDetermined
. After checking the code nothing seems to request permission so maybe the doc is just not up-to-date.This callback is never called on app startup. In my opinion, it makes sense to not fire an event if token didn't change since last startup but while testing it was not even triggered on first app launch.
From my understanding, FCM needs to register the APNS token in order to map it to the registration token so any calls before that would fail. I think it would be better to explain that in the documentation with more details around the cases when the APNS token might be null and what to do in this situation. On the latter, would you recommend to retry with an exponential backoff?
Please have a look and update the doc accordingly.