Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS推送通知:";希望接收推送通知”;从来没有人问过_Ios_Notifications_Parse Platform_Push - Fatal编程技术网

iOS推送通知:";希望接收推送通知”;从来没有人问过

iOS推送通知:";希望接收推送通知”;从来没有人问过,ios,notifications,parse-platform,push,Ios,Notifications,Parse Platform,Push,我有两个收到推送通知的应用程序。我将两者都升级到了Xcode 6,其中一个工作正常,第二个从未向用户请求接收推送通知的权限,也没有收到通知 我确实将appDelegate中的代码更新为新的iOS 8调用: // register for push notification if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { [[UIApplication sharedApplication] regis

我有两个收到推送通知的应用程序。我将两者都升级到了Xcode 6,其中一个工作正常,第二个从未向用户请求接收推送通知的权限,也没有收到通知

我确实将appDelegate中的代码更新为新的iOS 8调用:

// register for push notification
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
  [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes: (UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge)
                categories:nil]];

    [[UIApplication sharedApplication] registerForRemoteNotifications];
}
else
{
    [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge|
     UIRemoteNotificationTypeAlert|
     UIRemoteNotificationTypeSound];
}
我相信它工作正常,因为调用DeviceToken时没有注册器进行删除,而我得到的是DeviceToken

我有:

  • 重新创建(多次)我的ID和配置文件
  • 我是在设备上测试这个,不是在模拟器上
  • 我曾尝试将其加载到iOS 8和iOS 7设备上,但都不起作用
  • 检查以确保PN是通过PARSE发送的(我正在使用PARSE创建PN)。他们是。它们在第二个应用程序上被接收
  • 推高手机上的日期,重新启动,然后重新安装应用程序(先删除)
此外,该应用程序在“通知”部分中列出,用于接收通知


有什么想法吗?

您是否尝试过从手机中删除该应用程序?如果它已经存在,那么iOS已经提示您做出决定,并且不会再这样做。是的,我做了很多次。您的应用程序是否显示了解析链接到应用程序所需的安装记录?