Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[firebase_messaging] Should support Rich notifications by default on iOS. #35866

Closed
kaumudpa opened this issue Jul 10, 2019 · 9 comments
Closed
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: firebase_messaging The Firebase Messaging plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels. platform-ios iOS applications specifically

Comments

@kaumudpa
Copy link

It still does not support Rich Notifications (Notifications with Image) on iOS, Anybody has workaround for this??? If not this would be a feature request.

@khainhero
Copy link

Perhaps, this can help you. I am planning to include this for my own project when I have time. So I can modify the notification before its displayed to the user.
https://developer.apple.com/documentation/usernotifications/unnotificationserviceextension

more info here:
https://documentation.onesignal.com/docs/service-extensions#section-notificationextenderservice-span-class-label-all-label-android-android-span-

@kaumudpa
Copy link
Author

We need a way to send Rich Notifications out of the box for ios for FCM. The current plugin supports FCM Rich messages for Android but not for iOS.

@zanecidan
Copy link

We need a way to send Rich Notifications out of the box for ios for FCM. The current plugin supports FCM Rich messages for Android but not for iOS.

@kaumudpa I'm looking into this too. May I know how do you send Rich Notifications for Android using current plugin?

@kaumudpa
Copy link
Author

I will give you a small and simple example.

Without any additional efforts in the project Rich Notifications i.e. Notifications with Image can be sent to an android device. But Rich Notifications cannot be sent to the iOS Devices on the current plugin.

I have tried using Notification extension in the ios project but it created problems with the plugin. This should be an Out of the box feature for the plugin.

I am attaching screenshots of ios and android for the same notification which was sent using the following :

{
   "to": "Your FCM Device Token",
   "content_available": true,
   "mutable_content": true,
   "notification":
   {
              "title": "Testing Rich FCM",
              "body": "Testing FCM With images",
              "sound": "default",
              "image": "https://cdn.pixabay.com/photo/2018/01/21/01/46/architecture-3095716_960_720.jpg"
            }
}

Screenshot_20190813-164806
Image from iOS (4)

@zanecidan
Copy link

@kaumudpa Thank you very much.

@janmoppel janmoppel added p: firebase Firebase plugins p: firebase_messaging The Firebase Messaging plugin p: first party c: new feature Nothing broken; request for a new capability platform-ios iOS applications specifically customer: crowd Affects or could affect many people, though not necessarily a specific customer. labels Sep 30, 2019
@janmoppel
Copy link

Hello @kaumudpa !

Does the problem still persist in the latest plugin version?

@janmoppel janmoppel added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 30, 2019
@kaumudpa
Copy link
Author

kaumudpa commented Sep 30, 2019 via email

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 30, 2019
@kroikie kroikie closed this as completed Oct 13, 2019
@kroikie
Copy link

kroikie commented Oct 13, 2019

@kaumudpa

This issue has been moved to firebase/flutterfire#357. Any further collaboration will be done there.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: firebase_messaging The Firebase Messaging plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels. platform-ios iOS applications specifically
Projects
None yet
Development

No branches or pull requests

5 participants