How to implement rich notifications in ios 10 with Firebase

I have been looking for a solution for this since quite a while. But I can't find anything. I have implemented Push Notifications for iOS using FCM. But I don't know if FCM iOS 10 supports rich notifications. If so, I haven't found any code to implement it. Thanks in advance.

+2


source to share


2 answers


I have the same question why a lot of notifications are not working .. and the problem is with the FCM mutable-content

payload .. it accesses gcm.notification.mutable-content

when it receives the payload and why there is a problem that has not been resolved yet.

For more information, you can check this issue from github.



It is now resolved. You can check this link and also check this AL answer .

+4


source


Just an update due to @ ElCaptainv2.0's answer.

Added for FCM mutable_content

:

Currently only for devices with iOS 10+. On iOS, use this field to represent volatile content in the APNS payload. When a notification is sent and this value is true, the content of the notification can be modified before it is displayed using the Notification Service Application Extension . This setting will be ignored for Android and Web.



Note. The parameter value should be boolean

, not Integer

.

It was also mentioned in the GitHub thread just a few hours ago by kroikie.

+3


source







All Articles