-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_messaging] Failed to get FIS auth token #3163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
try to check the AVD manager emulator, click on settings advanced and set Cold boot. It should work. |
same error, nothing seems to help |
Weird thing, I don't (explicitly) use Messaging, but I'm still getting this error on my test device. I do use
But the crash seems to be happening even before the first call of my |
i encounter this when changing my firebase project. |
i meet this problem. i try to solves it just like belowe: old code:Future setup() async { Future getToken() async { new code:init() async { getToken() async { conclusion:the different of the two coding style is the getToken() method have a async return type。 and i had found anther method is ok too, like this: String tokenStr; |
I resolve this issue by turn on wifi connection |
any fixes? |
cuongvue Thanks! I solved as like you! |
cuongvue Thank You . I solved as like you . |
Hi, I had the same issue and in my case, my android emulator didn't have Google Play Services added. Created a new one with Google Play Services services and it worked. |
Describe the bug
Unable to obtain token
To Reproduce
Steps to reproduce the behavior:
run app
Expected behavior
get token
Additional context
Flutter doctor
Run
flutter doctor
and paste the output below:1.12 fix 8 and dev all like this
The text was updated successfully, but these errors were encountered: