*缺少针对本地通知的推送通知权利*

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设置中包含推送

在此输入图像描述

Dan*_*iil 1

本地通知不需要对权利进行任何更改。

远程推送通知要求您在权利中启用推送通知,并且您还需要一个开发者帐户。