Relative Content

Tag Archive for flutterfirebasedartgoogle-cloud-firestorefirebase-realtime-database

Flutter: Firestore running out of main thread

Im trying to use Firestore on my flutter app but firebase is not running in the main thread
It actually works setting the docs but i get an error showing on each transaction
[ERROR:flutter/shell/common/shell.cc(1055)] The 'plugins.flutter.io/firebase_firestore/transaction/ac27d098-dd91-4050-b7a4-8fe66de5ab48' 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.