简体   繁体   English

当应用未运行时,APNS注册远程推送通知吗?

[英]APNS register remote push notification when app not running?

In android , we can use service and broadcastreceive. 在android中,我们可以使用service和broadcastreceive。 Anyone has any idea to do that registers the remote-push notification when app is not running(never lunched) in iOS ? 任何人都想在iOS未运行应用程序(从未午餐)时注册远程推送通知吗? (Though i think it is impossible.) (尽管我认为这是不可能的。)

This isn't possible. 这是不可能的。 The app must be run to request notification permissions. 必须运行该应用程序才能请求通知权限。

This would make no sense in iOS. 在iOS中这没有任何意义。 Registering for APNS requires user confirmation and needs to be subjected by your app. 注册APNS需要用户确认,并且需要接受您的应用程序的约束。

If your app is not running - it can't do anything. 如果您的应用未运行-它无能为力。 And if you don't subject it, the user can't confirm. 而且,如果您不对此加以限制,则用户将无法确认。

As of iOS8 some functionality is enabled by default. 从iOS8开始,默认情况下启用了某些功能。 For details you should refer to WWDC 2014 content. 有关详细信息,请参阅WWDC 2014内容。

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

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