【发布时间】:2017-03-20 04:01:29
【问题描述】:
我正在尝试这种方法,使用 Parse Server 推送适配器从 云代码 发送推送通知。通知已成功传递,但问题是如何使用“内容可用”标志。我不确定我是否以正确的方式使用该标志,因为当通知到达时应用程序并没有被唤醒。
这是代码:
Parse.Push.send({
where: query,
data: {
alert: 'One more test 1',
badge: 1,
sound: 'default',
content_available: 1
}
}, { useMasterKey: true });
同样,通知到达,但“内容可用”标志不起作用。有人使用这种方法发送推送通知吗?我应该把“内容可用”放在哪里?
谢谢大家!
【问题讨论】:
-
当 content-available 的值为 1 时 application:didReceiveRemoteNotification:fetchCompletionHandler: 被调用。更多详情:developer.apple.com/reference/uikit/uiapplicationdelegate/…
标签: ios parse-platform push-notification parse-cloud-code parse-server