我的iPhone屏幕已被锁定,有时,当我从PHP脚本发送推送通知时,它会自动消失。这个问题可能是什么原因?
我使用didReceiveRemoteNotification
的背景提取执行:
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^) (UIBackgroundFetchResult))completionHandler {
NSLog(@"Notification received: %@", userInfo);
completionHandler(UIBackgroundFetchResultNewData);
// 100 lines of code
}