*Missing Push Notification Entitlement* for Local Notifications
Asked Answered
B

1

8

It is not clear to me whether we need to request push notification permissions in the provisioning profile, if we are only sending local notifications. I received the warning email when doing a test upload to ITunes and do not want to waste time when we submit.

I have calls for 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];

and

[application scheduleLocalNotification:notification];

But no push notification. Do I need to include push in the IOS-APP ID Settings

enter image description here

Besant answered 3/2, 2015 at 9:39 Comment(0)
U
1

Local notifications do not need any changes to the entitlements.

Remote push notifications require you to enable Push Notifications in the entitlements and you will also need a developer account.

Unusual answered 1/10, 2019 at 10:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.