【问题标题】:*Missing Push Notification Entitlement* for Local Notifications*缺少本地通知的推送通知权利*
【发布时间】:2015-02-03 09:39:13
【问题描述】:

如果我们只发送本地通知,我不清楚是否需要在配置文件中请求推送通知权限。我在向 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];

和

[application scheduleLocalNotification:notification];

但没有推送通知。 IOS-APP ID设置中需要加入push吗

【问题讨论】:

    标签: ios notifications app-store apple-push-notifications app-store-connect


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2015-11-28
      • 2015-11-21
      • 2016-07-09
      • 2015-12-01
      • 2015-03-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多