I’m getting a crash and can’t seem to find any clear solution online. My Flutter app uses Firebase Auth (along with Firebase Core and Storage), and everything works fine on some Windows devices, but it crashes instantly on others.
Here’s the log message I get before the crash:
The 'firebase_auth_plugin/id-token/[DEFAULT]' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
It seems like the issue is happening inside the Firebase Auth plugin itself — maybe it’s sending something to Flutter from the wrong thread on Windows?
How can I debug this?
Platform: Windows
Packages: firebase_auth, firebase_core, firebase_storage
Tech: Flutter
I’ve already tried:
- Cleaning and rebuilding the project
- Upgrading all Firebase packages and Flutter to the latest stable version
- Rechecking my async calls (nothing custom with platform channels)
Still no luck.