await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); Click To Expand Crash log I/flutter (31950): FlutterFire Messaging: An error occurred in your background messaging handler: I/flutter (31950): PlatformException(IllegalStateException, java.lang.IllegalStateException: Firebase...
PID: 13706 E/AndroidRuntime(13706): java.lang.AssertionError E/AndroidRuntime(13706): at io.flutter.plugins.firebase.messaging.FlutterFirebasePermissionManager.onRequestPermissionsResult(FlutterFirebasePermissionManager.java:33) E/AndroidRun
void main() { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); FirebaseMessaging.onBackgroundMessage(firebaseBackgroundMessageHandler); //etc } Future<void> firebaseBackgroundMessageHandler(RemoteMessage message) async { print("Message received"); await Firebase.initializeApp(); ...
firebase_messaging: 12.0.1 iphone 13 iOS: 15.5 and 15.6 Flutter: 3.0.3 Notification Sample Payload: { admin.messaging().send({ token: "device token", data: { "title": "Silent Notification", "body": "Hello World!",
I am using APNS Key instead of the APNS certificates for the projects. I mention this explicitly here because the docs have a title for the key but the content for the certificate (See:https://firebase.google.com/docs/cloud-messaging/flutter/client#upload_your_apns_authentication_key) ...
Bug report I get an invalid token from firebase messaging plugin with iOS real device (iPhone 11, iOS 15.0) Steps to reproduce Update AppDelegate.swift file as below: import UIKit import Flutter import Firebase import FirebaseMessaging i...
class MainApplication : FlutterApplication(), PluginRegistrantCallback { override fun onCreate() { super.onCreate() FlutterFirebaseMessagingService.setPluginRegistrant(this); } override fun registerWith(registry: PluginRegistry?) { registry?.registrarFor("io.flutter.plugins.firebasemessaging.FirebaseMessagin...
Bug report Describe the bug I am now seeing the following error in Sentry (since the new version of firebase_messaging): [firebase_messaging/apns-token-not-set] APNS token has not been set yet. Please ensure the APNS token is available b...
(options:DefaultFirebaseOptions.currentPlatform);FirebaseMessaging.onBackgroundMessage(onBackgroundMessage);finalFirebaseMessagingmessaging=FirebaseMessaging.instance;finalNotificationSettingssettings=awaitmessaging.requestPermission();if(settings.authorizationStatus==AuthorizationStatus.denied) {print('FirebaseMessaging: ...
.github feat(cloud_functions): add support for cloud functions stream (#17214) Apr 28, 2025 .opensource refactor(database): movepackages/firebase_databaseto `packages/fi… Apr 22, 2021 .vscode ci: enableusePubspecOverrides(#10046) Jan 19, 2023 ...