Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.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-APNS-推送未接收_Ios_Apple Push Notifications - Fatal编程技术网

iOS-APNS-推送未接收

iOS-APNS-推送未接收,ios,apple-push-notifications,Ios,Apple Push Notifications,几天前,我更新了apns认证。在app store中发布的应用程序似乎一切正常。 一天后,我创建了一个临时IPA,但这次推送通知没有到达。这是wierd,因为没有错误日志。 在我使用的服务器中 我做错了什么 更新 我正在使用工具测试我的pem文件和设备令牌。根据这些工具,消息已成功发送。但是我的iphone没有收到推送通知 我的问题还没有完全解决,但我发现了adhoc IPA和调试模式的不同行为 当令牌注册失败时,我编写了一个测试代码 - (void)application:(UIAppl

几天前,我更新了apns认证。在app store中发布的应用程序似乎一切正常。 一天后,我创建了一个临时IPA,但这次推送通知没有到达。这是wierd,因为没有错误日志。 在我使用的服务器中

我做错了什么

更新 我正在使用工具测试我的pem文件和设备令牌。根据这些工具,消息已成功发送。但是我的iphone没有收到推送通知


    • 我的问题还没有完全解决,但我发现了adhoc IPA和调试模式的不同行为

      当令牌注册失败时,我编写了一个测试代码

      - (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
      {
          NSLog(@"Failed to get token, error: %@", error);
      
          UIAlertView *alert = [[UIAlertView alloc]
                                initWithTitle:@"APNS Error"
                                message:[error localizedDescription]
                                delegate:self
                                cancelButtonTitle:@"Cancel"
                                otherButtonTitles:@"OK", nil];
          [alert show];
      }
      

      这让我知道我的项目设置有问题。但正如我所说,推送通知在许多设备上都没有问题,即使我的项目设置错误。

      我的问题没有完全解决,但我发现了adhoc IPA和调试模式的不同行为

      当令牌注册失败时,我编写了一个测试代码

      - (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
      {
          NSLog(@"Failed to get token, error: %@", error);
      
          UIAlertView *alert = [[UIAlertView alloc]
                                initWithTitle:@"APNS Error"
                                message:[error localizedDescription]
                                delegate:self
                                cancelButtonTitle:@"Cancel"
                                otherButtonTitles:@"OK", nil];
          [alert show];
      }
      
      这让我知道我的项目设置有问题。但正如我所说,推送通知在许多设备上都没有问题,即使我的项目设置错误