* Lack of right to push release notification * for local notifications

It’s not clear to me whether to request push notification permissions in the provisioning profile if we send only local notifications. I received a warning letter while performing a test download on iTunes and do not want to waste time when we send.

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 there is no push notification. Do I need to enable push in IOS-APP ID settings

enter image description here

+6
source share
1 answer

Local notifications do not need any rights changes.

For remote push notifications, you need to enable Push notifications in rights, and you also need a developer account.

0
source

Source: https://habr.com/ru/post/981916/


All Articles