I tested my newsstand app on two iOS8 devices (8.0.2 and 8.1) and get background notification only once in 24 hour period.
Does anyone know how to disable this limit in iOS8?
I'm not 100% sure that the problem is in OS version, but in iOS7 everything works fine.
This is what I did:
According to the Apple FAQ:
[[NSUserDefaults standardUserDefaults]setBool:YES forKey:@"NKDontThrottleNewsstandContentNotifications"];
iOS8 Registration code:
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)])
{
UIUserNotificationType types = 0;
types |= UIUserNotificationTypeBadge;
types |= UIUserNotificationTypeSound;
types |= UIUserNotificationTypeAlert;
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:types categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];
}
My payload:
{"aps":{"content-available":1}, "issue_id":"issue01"}