You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this rest to send notifications I use local_notification to handle foreground but
when I put property icon and sound in Rest foreground not show and background work when I remove this two-property foreground show and sound of background not working
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use this rest to send notifications I use local_notification to handle foreground but
when I put property icon and sound in Rest foreground not show and background work when I remove this two-property foreground show and sound of background not working
{ "notification": { "title": "grooooo", "body": "f4f5f5ff5f5f5f", "sound": "alert" }, "data": { "click_action": "FLUTTER_NOTIFICATION_CLICK", "group": { "id": 6, "name": "friendawy", "icon": "", "user_id": "1", "un_read": 0, "msg": "assfgf", "msg_time": "14:18 pm" }, "screen": "/group-chat" }, "to": "/topics/topic7" }
in manifest, I use metadata to show icon
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_launcher" />
i use two packages in pubspec.yaml
firebase_messaging: ^10.0.4
flutter_local_notifications: ^8.1.1+1
Beta Was this translation helpful? Give feedback.
All reactions