推送通知在屏幕上消失

时间:2015-04-27 19:55:30

标签: ios push-notification apple-push-notifications push

我的iPhone屏幕已被锁定,有时,当我从PHP脚本发送推送通知时,它会自动消失。这个问题可能是什么原因?

我使用didReceiveRemoteNotification的背景提取执行:

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
fetchCompletionHandler:(void (^)   (UIBackgroundFetchResult))completionHandler {

    NSLog(@"Notification received: %@", userInfo);

    completionHandler(UIBackgroundFetchResultNewData);

    // 100 lines of code

}

0 个答案:

没有答案
相关问题