【发布时间】:2018-09-19 13:33:35
【问题描述】:
我有一个应用程序,当它收到来自服务器的推送通知时,它会立即执行一段代码。我已经在应用程序中启用了后台模式,并且它在后台运行,即应用程序最小化模式。但在终止状态应用程序接收推送和调用
didReceiveRemoteNotification userInfo: fetchCompletionHandler completionHandler:
第一次。之后,如果它收到另一个推送,它将不会调用该方法。 我和我一起工作 xcode: 9.1 IOS:11.2 迅速:4
推送有效载荷
{
registration_ids: to,
data: {
title : 'xxxxx',
notify_id : xxxxxx,
created_on : createdTime,
body: body
},
notification: {
title: 'xxxxxx',
body: body,
sound: 'xxxx.caf'
},
priority: 'High',
content_available: true
}
请帮忙。
【问题讨论】:
标签: ios swift firebase push-notification