Rya*_*ner 6 notifications itunesconnect app-store apple-push-notifications ios
如果我们只发送本地通知,我不清楚是否需要在配置文件中请求推送通知权限.我在向ITunes上传测试时收到了警告电子邮件,并且在我们提交时不想浪费时间.
我要求IOS8 +
static const UIUserNotificationType USER_NOTIFICATION_TYPES_REQUIRED = UIUserNotificationTypeAlert | UIUserNotificationTypeSound | UIUserNotificationTypeBadge;
UIUserNotificationSettings* requestedSettings = [UIUserNotificationSettings settingsForTypes:USER_NOTIFICATION_TYPES_REQUIRED categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:requestedSettings];
Run Code Online (Sandbox Code Playgroud)
和
[application scheduleLocalNotification:notification];
Run Code Online (Sandbox Code Playgroud)
但没有推送通知.我是否需要在IOS-APP ID设置中包含推送