如何解决iOS 通知图像 React-Native
我在 ios 通知中显示图像时遇到问题。它适用于 android,但不适用于 ios。
我遵循了 react-native-firebase 文档,但它不起作用......
文档:https://rnfirebase.io/messaging/ios-notification-images
我接收通知的代码:
buildIOSNotification = (id,title,message,data = {},options.
= {}) => { return {
alertAction: options.alertAction || 'view',category: options.category || '',userInfo: {
id: id,item: data,},}}
这是我收到的 json 对象:
{"action": undefined,"badge": undefined,"data": {"fcm_options": {"image": "http://192.168.1.37:4000/notification/46f72f09cfc29c6a8878dd23c4cee7d2"},"g message_id": "1622999135203061","google.cae": "1","google.c.sender.id": "556656275748","notificationId": "A5490592-7AA1-4B6F-82BF-3BA9Dm"5"89 : true},"finish": [Function Finish],"foreground": true,"id": undefined,"message": "dsdsdsdsdsdsdsdsdsdsdsddsdsdsdsddsdsddsdsdsdsdsdsdsds","reply_text","undefined": "undefined" title": "ddssddsdsdsdssdsdsddsdssdsdsdssdsdsdsdsdsdsd","userInteraction": true}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。