[firebase_messaging]: FirebaseMessaging.onMessage not received any data
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- backend-api-design, mobile
Direzione di ricerca
Start by checking the firebase_messaging iOS implementation around FLTFirebaseMessagingPlugin.configureNotificationCenterDelegate() and how foreground messages reach FirebaseMessaging.onMessage. Reproduce the report on an iOS simulator using the provided notification and data payload, then compare behavior with the banner presentation options. Done means identifying why the foreground callback receives no data and confirming the expected behavior with a focused regression test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues.
Are you aware of the differences between iOS and Android background message handling?
- I understand that iOS and Android background messages behave differently, and I've designed my application with that in mind.
Do you have an active Apple Developer account?
- I have an active Apple Developer account.
Are you using a physical iOS device to test background messages?
- I am using a physical iOS device to test background messages.
Have you enabled "Remote Notifications" & "Background Mode" (Checking options for "Background Processing" & "Remote Notifications") in your app's Xcode project?
iOS simulator issues
FirebaseMessaging.onMessage not working
version firebase_messaging: ^16.7.0
added FLTFirebaseMessagingPlugin.configureNotificationCenterDelegate()
Have you created an APNs key in your Apple Developer account & uploaded this APNs key to your Firebase console?
yes
Have you disabled method swizzling for Firebase in your app?
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>FirebaseAppDelegateProxyEnabled</key>
<true/>
Are you sending messages to your app from the Firebase Admin SDK?
{
message: {
token: token,
notification: {
title: notifTitle,
body: notifBody,
},
data: {
title: notifTitle,
body: notifBody,
thread_id: String(thread_id || ""),
type: String(type || "CHAT"),
//...data,
},
android: {
priority: "HIGH",
notification: {
title: notifTitle,
body: notifBody,
sound: "default",
channel_id: "bizcentre_omnichannel_channel",
notification_priority: "PRIORITY_MAX",
default_sound: true,
default_vibrate_timings: true,
visibility: "PUBLIC",
},
},
apns: {
headers: {
"apns-push-type": "alert",
"apns-priority": "10"
},
payload: {
aps: {
alert: {
title: notifTitle,
body: notifBody,
},
sound: "default",
badge: 1,
"content-available": 1,
'mutable-content': 1,
},
},
},
},
}
Have you requested permission from the user to receive notifications?
- I have the relevant permission to receive notifications.
Have you used the 'Console' application on your macOS device to check if the iOS device's system is throttling your background messages?
the banner shown if set
await FirebaseMessaging.instance.setForegroundNotificationPresentationOptions(
alert: true,
badge: true,
sound: true,
);
Additional context and comments
No response
- Lingua principale
- Dart
- Stelle
- 9.3k
- Fork
- 4.1k
- Merge medio
- 2g 2h
- PR unite (30g)
- 38
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/flutterfire
-
🚀 [firebase_core] Bump Firebase iOS SDK (12.19.0 → 13.0.0)Forse già presa @SelaseKay l’ha presa 5 giorni fa. ApertaNeeds Attention platform: ios plugin: core type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
firebase/flutterfire#18769 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Needs Attention platform: android plugin: messaging type: bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 45/100
firebase/flutterfire#18789 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[📚] Remote Config Windows Support still N/A on ReadmeForse già presa @nightcityblade l’ha presa 5 giorni fa. Apertablocked: customer-response good first issue Needs Attention platform: windows plugin: remote_config type: documentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 30/100
firebase/flutterfire#18763 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[firebase_ai]: TemplateChatSession.sendMessage drops auto-executed function call/response turns from historyForse già presa @chiliec l’ha presa 7 giorni fa. ApertaNeeds Attention platform: all platform: web plugin: ai reproduced type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
firebase/flutterfire#18757 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[cloud_firestore] iOS: transaction.get() after the native timeout aborts the app ("A transaction object cannot be used after its update callback has been invoked")Forse già presa @SelaseKay l’ha presa 1 giorno fa. ApertaNeeds Attention platform: ios plugin: cloud_firestore reproduced type: bug type: crash
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
firebase/flutterfire#18755 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di firebase/flutterfire
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
leancodepl/app-rating#35 ·
-
Mobile login: "Sign In" button is squashed to 16 px with its label cut while the keyboard is openApertaai-driven-qa bug claude
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
linagora/tmail-flutter#4976 ·
I maintainer di solito rispondono entro 1 giorno
-
P2 package platform-ios team-ios
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
dart-lang/sdk#64568 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
discover
Difficoltà 2/5 1-3 ore Idoneità per principianti 91/100
DevDogsUGA/DogPack#14 ·