[英]Can I use Remote Notification for messaging app to wake up my application since I can not use push kit
I have a messaging app, in the past I was using push-kit to wake up my app in order to download message in background or when app killed.我有一个消息应用程序,过去我使用 push-kit 来唤醒我的应用程序,以便在后台或应用程序终止时下载消息。
As Pushkit I can not use any more, so I must use remote notification, but if I add in the payload of remote notification content-type =1 and doesn't add any badge or alert Apple called this as a silent notification so according to them, if app receive more than 5 silent push in hour they can throttle the notification.由于 Pushkit 我不能再使用了,所以我必须使用远程通知,但是如果我添加远程通知内容类型 =1 的有效负载并且不添加任何徽章或警报 Apple 将其称为静默通知,因此根据他们,如果应用程序在一小时内收到超过 5 次静默推送,他们可以限制通知。
My question is, if add badge and alert and content-type =1 in payload in order to wake up my app and download the message, can app receive more than 5 notification in hour and Apple will not throttle this?我的问题是,如果在有效负载中添加徽章和警报和 content-type =1 以唤醒我的应用程序并下载消息,应用程序可以在一小时内收到超过 5 个通知,Apple 不会对此进行限制吗?
I am going to answer here maybe it can help someone else.我要在这里回答,也许它可以帮助别人。
As i asked from apple, they says that if you add正如我从苹果那里问的那样,他们说如果你添加
content-type =1
内容类型 =1
in remote notification, it looks like background notification for them or silent notification what ever you call... there is a limit of 3 silent notification per hour and also not guaranteed the delivery... Note: In debug there is no limitation, if you want to test it, you should test it from testflight.在远程通知中,它看起来像他们的背景通知或您所调用的无声通知...每小时限制为 3 个无声通知,并且也不能保证交付...注意:在调试中没有限制,如果你想测试它,你应该从 testflight 测试它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.