简体   繁体   English

iOS推送通知和背景

[英]iOS push notification and background

I have a question about remote-notification for background mode. 我对后台模式的远程通知有疑问。 Can my application run - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo when my iphone "background app refresh" is off. 当我的iPhone“后台应用刷新”关闭时,我的应用可以运行- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

It will call the didReceiveRemoteNotification method. 它将调用didReceiveRemoteNotification方法。 The " background app refresh " turn off is stop the background processes of you app. 关闭“ 后台应用刷新 ”是停止您的应用的后台进程。 But the " remote notification " is handled by the APNS server. 但是“ 远程通知 ”由APNS服务器处理。 That will not stop your push notifications. 这不会停止您的推送通知。

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

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