Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.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
亚马逊SNS在iOS 8中因SNSInvalidParameterException崩溃?_Ios_Amazon Web Services_Push Notification_Ios8_Amazon Sns - Fatal编程技术网

亚马逊SNS在iOS 8中因SNSInvalidParameterException崩溃?

亚马逊SNS在iOS 8中因SNSInvalidParameterException崩溃?,ios,amazon-web-services,push-notification,ios8,amazon-sns,Ios,Amazon Web Services,Push Notification,Ios8,Amazon Sns,我已经实现了AWS-Simple Notification Service,它工作正常,但在我将iOS 7升级到iOS 8后,应用程序因以下原因崩溃: *** Terminating app due to uncaught exception 'AmazonClientException', reason: '' *第一次抛出调用堆栈: 0x186f3e084 0x19751c0e4 0x100270224 0x10026f95c 0x1000dd7f0 0x187e0a60c 0x197d3

我已经实现了AWS-Simple Notification Service,它工作正常,但在我将iOS 7升级到iOS 8后,应用程序因以下原因崩溃:

*** Terminating app due to uncaught exception 'AmazonClientException', reason: ''
*第一次抛出调用堆栈: 0x186f3e084 0x19751c0e4 0x100270224 0x10026f95c 0x1000dd7f0 0x187e0a60c 0x197d3fe80 0x197d3fddc 0x197D3CF00 libc++abi.dylib:以SNSInvalidParameterException类型的未捕获异常终止

执行下面的代码段后,它崩溃了

endPoint.platformApplicationArn = @"arn:aws:sns:eu-west-1:ID:app/APNS_SANDBOX/AppName_Dev";
[amazonClient createPlatformEndpoint:endPoint];

提前感谢。

最后,我有了一个解决方案,这是因为endPoint.customUserData没有使用相同的用户数据。正如Yosuke所评论的[AmazonLogger verboseLogging];在追踪窃听器方面帮了我很大的忙

因此,尝试对一个应用程序使用与此处@Test相同的数据

endPoint.customUserData = @"Test";

您可以通过调用[AmazonLogger verboseLogging];,打开详细日志记录;。它可能会给你更多的信息。此外,我们还发布了。它包含了许多改进,所以您可能需要考虑迁移。Yosuke谢谢您的评论。现在我得到如下类似错误-无效参数:令牌原因:端点arn:aws:sns:eu-west-1:ID:Endpoint/APNS_SANDBOX/APP_NAME/e285b5b5b6-d5ea-3w22-8348-08837b89a7e4已经存在,具有相同的令牌,但属性不同。?