如何使用 Firebase 在 ios 10 中实现丰富的通知 [英] How to implement rich notifications in ios 10 with Firebase

查看:23
本文介绍了如何使用 Firebase 在 ios 10 中实现丰富的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在为此寻找解决方案.但我找不到任何东西.我已经使用 FCM 为 iOS 实现了推送通知.但是不知道FCM是否支持iOS 10丰富的通知.如果是这样,我没有找到实现它的代码.提前致谢.

I have been looking for a solution for this since quite a while. But I am not able to find anything. I have implemented Push Notifications for iOS using FCM. But I don't know if FCM supports iOS 10 rich notifications. If it does, I didn't find code to implement it. Thanks in advance.

推荐答案

我有同样的问题,为什么富通知不起作用..问题出在 FCM mutable-content 有效载荷上..它变成了当有效载荷接收到 gcm.notification.mutable-content 时,这就是为什么存在尚未解决的问题.

I have the same question why rich notification not working.. and the problem is with FCM mutable-content payload .. it turns in to gcm.notification.mutable-content when payload receives and that's why there is a problem which is not resolved yet.

有关更多信息,您可以从 github 查看此问题.

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

现在已经解决了..您可以查看该链接并查看此answer AL.

Its resolved now.. you can check that link and also check this answer AL.

这篇关于如何使用 Firebase 在 ios 10 中实现丰富的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆