【发布时间】:2013-12-21 23:34:21
【问题描述】:
我花了几个小时删除证书并重新制作它们。我已经多次关注本教程https://developers.arcgis.com/en/geotrigger-service/guide/ios-push-notifications/,但仍然无法让推送通知正常工作。我使用的是 geoloqi.com API,但它们被 esri 收购并刚刚发布了一个新的 api。我曾与 geoloqi 合作过。
该教程唯一值得怀疑的地方是它说“将 pem 文件粘贴到框中”我刚刚从 finder 中复制并按照它所说的那样粘贴了它,但这很奇怪,因为通常有一个浏览文件按钮然后你上传。我不知道,这可能不是问题,但我想我会提出来。
使用此测试代码:
[[AGSGTApiClient sharedClient] postPath:@"device/notify"
parameters:@{@"text": @"Push notifications are working!", @"url": @"http://developers.esri.com"}
success:^(id res) {
NSLog(@"device/notify success: %@", res);
}
failure:^(NSError *err) {
NSLog(@"device/notify failure: %@", err.userInfo);
}];
我明白了:
device/notify success: {
devices = {
TKhqTzrTSQI0DGBa = queued;
};
但我从来没有收到推送。有没有人建议我下一步可以尝试,因为我迷路了?
【问题讨论】:
标签: ios objective-c push-notification arcgis esri