1

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.

2
  • I get that message (only in windows) but it causes no issues for me - I am only using firebase Auth. Windows is not a target platform for me so not a big issue but I too have found no resolution. Commented Oct 20 at 17:17
  • @Elemental Thanks for confirming! Yeah, seems like it doesn’t always crash, maybe it depends on the device or system config. In my case, the app actually crashes right after that log shows up, so it’s a bit more critical. Hopefully, the Firebase team addresses this in a future update. Commented Oct 20 at 17:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.