2014.2438 Local notification failed

In the release notes of build 2438 it states “iOS: Fix local notifications for iOS 8” however it’s not fully fixed.
 
When I try to schedule a local notification I get this in the log:

2014-09-19 16:52:58.125 BFG[265:11416] Attempting to schedule a local notification \<UIConcreteLocalNotification: 0x1773c410\>{fire date = Friday, September 19, 2014 at 4:53:58 PM Korean Standard Time, time zone = (null), repeat interval = 0, repeat count = UILocalNotificationInfiniteRepeatCount, next fire date = Friday, September 19, 2014 at 4:53:58 PM Korean Standard Time, user info = (null)} with an alert but haven't received permission from the user to display alerts

 
Normally, after installing the app on a device I should get a notification popup asking me for  Push  Notification permission, however no popup is ever displayed. Also, when I check for my app in Settings->Notifications the app is not listed.

This only addresses local notifications, not push notifications.  More work to be done.

Rob

Sorry, I mistyped in my original post above (however the Title of my post and the error message is correct). To correct my typo above:

I’m using Local Notifications not Push Notifications, and Local notifications do not work on iOS 8 when compiled with Xcode 6.

I know it’s possible to use Xcode 5 / iOS 7 SDK. I just wanted to inform you that Local Notifications using the iOS 8 SDK are not working.

You can pass this along to the engineers: The iOS notification request has changed in iOS8 and needs to be amended similar to this:

// are we running on iOS8? if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings \*settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge|UIUserNotificationTypeAlert|UIUserNotificationTypeSound) categories:nil]; [application registerUserNotificationSettings:settings]; } else // iOS 7 or earlier { UIRemoteNotificationType myTypes = UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound; [application registerForRemoteNotificationTypes:myTypes]; }

Has there been any movement on this? Specifically, how can I get local notifications to register on iOS 8?

Here are the known iOS 8 issues, their current resolution/state.  As far as I know local notifications are working as they should in the latest daily builds.

http://coronalabs.com/blog/2014/09/24/ios-8-and-corona-sdk/

If you are running a build later than this and you’re experiencing problems, then likely we would need to see some code to make sure this is working, or if you know it works on iOS7 and it fails on iOS 8 when building with the latest daily builds, then we will need a bug report with a sample app that reproduces the problem (complete with build.settings, config.lua and any required assets bundled in a .zip file)

Rob

It’s not working for me. I downloaded 2393a as mentioned in the blog post. Built out and installed on an iPhone 6 with iOS 8, but it’s not registering. Here’s my code, we’ve previously released the same code before … is there something I’m missing here?

function Game:setTimedEvent(choice) --the notification local EventNotification = { alert = choice["EVENT\_TEXT"], --the notification message badge = 1, sound = "notification.wav", -- custom = {type = eventArray[event\_choice].type} --custom type sent } print(EventNotification.alert .. " is the event notification") --scheduling new timer and setting the notification local secondsFromNow=30 local saveTime=secondsFromNow+os.time() system.cancelNotification() --clears out all previous timers print("scheduling a notification " .. secondsFromNow .. "seconds from now with the text " .. EventNotification.alert) system.scheduleNotification( secondsFromNow, EventNotification ) --1st param: time delay, 2nd param: corona notification --save stuff... return saveTime, choice --saveTime is the new Timer end

Thanks so much Rob! Found the issue, it was on our end, we were canceling scheduled notifications on system suspend

This only addresses local notifications, not push notifications.  More work to be done.

Rob

Sorry, I mistyped in my original post above (however the Title of my post and the error message is correct). To correct my typo above:

I’m using Local Notifications not Push Notifications, and Local notifications do not work on iOS 8 when compiled with Xcode 6.

I know it’s possible to use Xcode 5 / iOS 7 SDK. I just wanted to inform you that Local Notifications using the iOS 8 SDK are not working.

You can pass this along to the engineers: The iOS notification request has changed in iOS8 and needs to be amended similar to this:

// are we running on iOS8? if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { UIUserNotificationSettings \*settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge|UIUserNotificationTypeAlert|UIUserNotificationTypeSound) categories:nil]; [application registerUserNotificationSettings:settings]; } else // iOS 7 or earlier { UIRemoteNotificationType myTypes = UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound; [application registerForRemoteNotificationTypes:myTypes]; }

Has there been any movement on this? Specifically, how can I get local notifications to register on iOS 8?

Here are the known iOS 8 issues, their current resolution/state.  As far as I know local notifications are working as they should in the latest daily builds.

http://coronalabs.com/blog/2014/09/24/ios-8-and-corona-sdk/

If you are running a build later than this and you’re experiencing problems, then likely we would need to see some code to make sure this is working, or if you know it works on iOS7 and it fails on iOS 8 when building with the latest daily builds, then we will need a bug report with a sample app that reproduces the problem (complete with build.settings, config.lua and any required assets bundled in a .zip file)

Rob

It’s not working for me. I downloaded 2393a as mentioned in the blog post. Built out and installed on an iPhone 6 with iOS 8, but it’s not registering. Here’s my code, we’ve previously released the same code before … is there something I’m missing here?

function Game:setTimedEvent(choice) --the notification local EventNotification = { alert = choice["EVENT\_TEXT"], --the notification message badge = 1, sound = "notification.wav", -- custom = {type = eventArray[event\_choice].type} --custom type sent } print(EventNotification.alert .. " is the event notification") --scheduling new timer and setting the notification local secondsFromNow=30 local saveTime=secondsFromNow+os.time() system.cancelNotification() --clears out all previous timers print("scheduling a notification " .. secondsFromNow .. "seconds from now with the text " .. EventNotification.alert) system.scheduleNotification( secondsFromNow, EventNotification ) --1st param: time delay, 2nd param: corona notification --save stuff... return saveTime, choice --saveTime is the new Timer end

Thanks so much Rob! Found the issue, it was on our end, we were canceling scheduled notifications on system suspend