简体   繁体   English

iOS 推送通知和远程通知的区别?

[英]Difference Between iOS Push Notifications and Remote Notifications?

In Xcode under app capabilities there is an option to turn on Push Notifications.在应用程序功能下的 Xcode 中,有一个选项可以打开推送通知。 Under Background Modes there is also an option to turn on Remote Notifications.在后台模式下,还有一个选项可以打开远程通知。 What is the difference?有什么区别? Pros/Cons?优点/缺点?

Do I still set up a push certificate for remote notifications?我还需要为远程通知设置推送证书吗?

Remote notifications is a special (and rather poorly named) background mode that allows the app to download content in response to a push notification.远程通知是一种特殊的(而且名称很差)后台模式,它允许应用程序下载内容以响应推送通知。

From Apple :来自苹果

The app wants to start downloading content when a push notification arrives.该应用程序希望在推送通知到达时开始下载内容。 Use this notification to minimize the delay in showing content related to the push notification.使用此通知可最大程度地减少显示与推送通知相关的内容的延迟。

Normal push notifications will not require this permission, but adding this mode allows additional functionality for push notifications.普通推送通知不需要此权限,但添加此模式允许推送通知的附加功能。

And yes, you will still require push certificates even with this background mode enabled.是的,即使启用了这种后台模式,您仍然需要推送证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM