简体   繁体   English

我可以使用远程通知消息应用程序来唤醒我的应用程序,因为我不能使用推送工具包

[英]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.

相关问题 我可以使用 Pushkit 唤醒 iOS 13 中的应用程序吗? - Can I use Pushkit to wake app up in iOS 13? 如何使用本地通知来唤醒我的应用程序? - How can I use local notifications to wake my app? 我无法向我的应用程序发送 Firebase Cloud Messaging 推送通知我按照步骤操作但无处可去 - I can't send a Firebase Cloud Messaging push notification to my app i followed the steps but got nowhere 我可以使用Apple Push Notification Service让我的应用执行某些操作而不通知iOS 7中的用户吗 - Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7 我可以在本地推送通知而不是远程通知中使用可变内容吗? - Can I use mutable-content with local push notification instead of remote notification? 远程推送通知不会唤醒我的手机 - Remote push notification doesn't wake up my phone 我应该使用推送还是可以使用本地通知? - Should I use push or can I use local notification? 如何在应用程序中使用变量(Bool)来控制在后台运行应用程序时是否可以显示远程通知? - How can I use a variable (Bool) in my app to control whether remote notifications can show up when the app is backgrounded? 如何在ios中一起使用本地通知和推送通知? - can I use local notification and push notification together in ios? 如果我使用Apple推送通知服务进行即时通讯,苹果会阻止我的帐户? - If I use Apple Push Notification service for instant messaging will apple block my account?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM