[core/no-app] No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp( #16987
Open
1 task done
Labels
blocked: customer-response
Waiting for customer response, e.g. more information was requested.
platform: android
Issues / PRs which are specifically for Android.
plugin: core
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
using:
firebase_core: ^3.10.0
firebase_messaging: ^15.2.0
already have:
`Future main() async {
WidgetsFlutterBinding.ensureInitialized();
try {
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler);
} catch (e) {
print("Firebase initialization failed: $e");
}`
seems to be only happening in android, not web and not ios.
Reproducing the issue
flutter run -d 'emulator-5554' --dart-define=ENV=production --debug | grep -v "I/MESA"
Firebase Core version
^3.10.0
Flutter Version
3.27.2
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
AND AND
noticed this too:
I/flutter (14995): Firebase initialization failed: PlatformException(channel-error, Unable to establish connection on channel., null, null)
The text was updated successfully, but these errors were encountered: