Check if Local Notifications are enabled in IOS 8

You can check it by using UIApplication ‘s currentUserNotificationSettings if ([[UIApplication sharedApplication] respondsToSelector:@selector(currentUserNotificationSettings)]){ // Check it’s iOS 8 and above UIUserNotificationSettings *grantedSettings = [[UIApplication sharedApplication] currentUserNotificationSettings]; if (grantedSettings.types == UIUserNotificationTypeNone) { NSLog(@”No permiossion granted”); } else if (grantedSettings.types & UIUserNotificationTypeSound & UIUserNotificationTypeAlert ){ NSLog(@”Sound and alert permissions “); } else if (grantedSettings.types & UIUserNotificationTypeAlert){ NSLog(@”Alert … Read more

Using katzer local notification in IBM Worklight

I got this to work by following the below. Demo project: https://www.dropbox.com/s/58urdluauc8u3l1/AndroidLocalNotifications.zip Because Worklight does not support Cordova’s Plugman to easily “install” Cordova v3 plug-ins, some manual labor is required to get it all set-up properly… blachs. Note the appName , it is used throughout the process for plug-in declarations. If you use a different … Read more