【发布时间】: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