【发布时间】:2021-08-06 15:56:45
【问题描述】:
在我的 Flutter 应用中,当我使用 Postman 发送推送通知时,数据会发送到我的 Android 测试设备,
{notification: {title: MugSafe Powerbank Sizi Bekliyor, body: Hemen alışverişe başlayın},
data: {priority: high, data1: helloworld, click_action: FLUTTER_NOTIFICATION_CLICK,
content_available: true}}
但它不会出现在 Ios 模拟器或真实设备甚至 logcat 中。
它在 Android 中根据需要工作,但在 Ios 中没有
我应该在 Xcode 中为这个问题做些什么吗?
我的帖子;
{
"to":"devicetoken",
"notification": {
"body": "Hemen alışverişe başlayın",
"title": "MugSafe Powerbank Sizi Bekliyor",
"sound":"default",
"sound2":"default",
"click_action": "FLUTTER_NOTIFICATION_CLICK"
},
"data": {
"data1":"helloworld"
},
"content_available": true,
"priority": "high"
}
【问题讨论】:
-
当我们在你的 iOS 应用上看不到获取通知的代码时,很难提供洞察力;你能提供吗?
标签: ios firebase flutter dart push-notification