0
我在我的項目中集成了Azure通知。在iOS 8.3之上的iOS 8.3通知無法正常工作的推送通知。 這是我的代碼的AppDelegate代碼示例:推送通知不工作ios 8.3?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if(([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)){
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIRemoteNotificationTypeBadge
|UIRemoteNotificationTypeSound
|UIRemoteNotificationTypeAlert) categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
}else{
UIRemoteNotificationType myTypes = UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound;
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:myTypes];
}
}
你必須使用第三方(Azure的通知)類? –
是Rohit。我正在使用WindowsAzureMessaging.Framework。 – Anbu