-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛 [firebase_messaging] onTokenRefresh never streams a value #5389
Comments
Seeing this as well with flutter doctor -v[√] Flutter (Channel master, 2.1.0-13.0.pre.175, on Microsoft Windows [Version 10.0.19041.867], locale et-EE)
• Flutter version 2.1.0-13.0.pre.175 at C:\Development\flutter_master
• Framework revision efbde443d2 (14 hours ago), 2021-03-18 13:40:08 -0700
• Engine revision c4628b709c
• Dart version 2.13.0 (build 2.13.0-149.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\marku\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.7.30621.155
• Windows 10 SDK version 10.0.18362.0
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119
• Flutter plugin version 54.0.1
• Dart plugin version 201.9335
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (4 available)
• SM G950F (mobile) • ce12171c51cc001c03 • android-arm64 • Android 9 (API 28)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19041.867]
• Chrome (web) • chrome • web-javascript • Google Chrome 89.0.4389.90
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.54
• No issues found! |
Same problem with firebase_messaging 9.1.0. |
following |
Still a problem on firebase_messaging 9.1.3 |
is it better to rollback to older version where token refresh still works (generate token on init) or is it better to manualy use getToken(and call it again inside exception if it's no longer valid) for now? |
any progress? |
any progress on this? |
for now i'm still doing this |
Yes but thats question to maitainers.... this is serious issue and is stalling from May.... |
Can we please get a rough ETA here? |
In which version this will be fixed? I mean number so I know when to upgrade. |
@vytautas-pranskunas- The latest which was released last Thursday, |
Bug report
Describe the bug
When using the
FirebaseMessaging.onTokenRefresh
stream a value is never received by the listener.Steps to reproduce
Steps to reproduce the behavior:
print(token)
is never executed.If I do
await fcm.getToken()
after some delay then I get a token, but that token is still not streamed in the onTokenRefresh method.Expected behavior
I expected to receive a token in the listener.
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: