我使用AWS推送通知发送ios设备通知。在iOS中,我仍然无法在AWS中注册设备令牌,我只能通过AWS控制台发送通知。请指导我如何在didRegisterForRemoteNotificationsWithDeviceToken委托中注册令牌。
我只是想直接向特定的ios设备发送通知......
提前致谢...
答案 0 :(得分:0)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions {
// Override point for customization after application launch.
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge |
UIUserNotificationTypeAlert |
UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
return YES;
}
答案 1 :(得分:0)
我建议您查看移动中心,创建一个配置了推送功能的项目,然后下载示例应用。
此外,您可以直接查看SNS文档http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html
答案 2 :(得分:0)
这是您在AWS SNS中需要做的事情:
每个点都有更多细节,但这就是全局。