Amazon SNS在iOS 8中因SNSInvalidParameterException崩溃了?

问题描述 投票:0回答:1

我已经实现了AWS-Simple Notification Service,并且运行良好,但是在将我的iOS 7升级到iOS 8应用程序后,崩溃是:

*** Terminating app due to uncaught exception 'AmazonClientException', reason: ''

*首先抛出调用堆栈:(0x186f3e084 0x19751c0e4 0x100270224 0x10026f95c 0x1000dd7f0 0x187e0a60c 0x197d3fe80 0x197d3fddc 0x197d3cfb0)libc ++ abi.dylib:以类型为SNSInvalidParameterException的未捕获异常终止]]

在执行下面的代码片段后其崩溃,

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

谢谢你。

我已经实现了AWS-Simple Notification Service,并且工作正常,但是在将我的iOS 7升级到iOS 8应用程序后,崩溃:***由于未捕获的异常'...]而终止应用程序>

ios amazon-web-services push-notification ios8 amazon-sns
1个回答
0
投票

最后,我有了解决方案,这是因为没有为endPoint.customUserData使用相同的用户数据。正如Yosuke所评论的那样[AmazonLogger verboseLogging];在跟踪错误方面对我有很大帮助。

因此,请为一个应用程序使用相同的数据(如此处的@“ Test”)。

© www.soinside.com 2019 - 2024. All rights reserved.