草庐IT

createPlatformEndpoint

全部标签

ios - iOS 中的 AWS v2 SNS - createPlatformEndpoint :request

当我在SNS控制台中设置端点时,推送工作正常。现在我开始允许iOS应用程序创建端点。然后是订阅。问题是BFTask*task=[snscreatePlatformEndpoint:request];返回,task.result为nil,而不是AWSSNSCreateEndpointResponse*。顺便说一句,task.error也是nil。来自.h文件:@returnBFTask的实例。成功执行后,task.result将包含AWSSNSCreateEndpointResponse的一个实例。执行失败时,task.error可能包含带有AWSSNSErrorDomain域的NSEr