I implemented the generation of push notifications using the following methods.
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)
{
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
}
else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}
The device token is generated correctly. But when you turn off the Sounds and Icons app icon and set the notification style as no one (Settings → Application name → Notifications), the device’s marker does not generate. This issue only occurs on iOS 8 devices. On iOS 7 devices, it works correctly. Can anyone give a solution for this.
user4501460
source
share