registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

It appears that Apple has changed the way permissions are granted for apps use push notifications such that the current method used by Corona no longer works in iOS8, giving this error message in the device console …

registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

This results in being unable to get a device token to set up a push service. Can Corona Labs comment on how this can be resolved so that push can be implemented on iOS8 (and still work for iOS7 and Android).

Check out this thread, as it seems to state that a more recent daily build fixes this issue.

No I believe that is a different issue.

You are 100% correct. This might be way I never get past the regional level in the spelling bee. Always missing the main point! Sorry m’friend.

From what I have read this is a common issue with other frameworks, including Unity, Xamarin and BuzzTouch, and it seems to be an easy fix in Xcode 6 - something like this …

if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { // use registerUserNotificationSettings} else { // use registerForRemoteNotifications}

The reason is that the way you get user permissions has changed in iOS8 and you need to get permission to show a user notification message whether local or remote.

Can I assume that Corona Labs engineers are on the case with this one?

We need a bug report for this.  It must have a test project with it, not just a lua file.  It needs a build.settings, config.lua and any resoruces needed to run and be in a .zip file.

Thanks

Rob

Hi Rob,

I submitted a bug report for this (case 35893). When can we expect this to be fixed? I need to submit a new app which contains push notifications and I believe this is affecting many other users as well. 

Thanks. 

I don’t know.  I know iOS 8 bugs are at the top of the list to fix but there are several reported bugs that also are important for people too.

Rob

Hello, this Josh with GameThrive,

We found a way to work around this issue.

For push notifications to work on iOS 8 you need to build your Corona app with the iOS 7.1 SDK so iOS 8 runs in compatibility mode for notifications. To set Corona to use iOS SDK 71. you will need to have Xcode 5.1.1 installed and must be named “Xcode” in your Applications. If you no longer have Xcode 5.1.1 installed you can still get it from Apple’s dev site and install it. Rename your current Xcode to “Xcode 6” so you can keep both on your system. After you install Xcode 5.1.1, open it and go to Xcode>Preferences and select the Locations tab. At the bottom set “Command Line Tools:” to Xcode 5.1.1". Restart Corona, rebuild your app, and then reinstall it on your device and it should work.

Josh you are a life saver! It worked perfectly. Thanks!

Check out this thread, as it seems to state that a more recent daily build fixes this issue.

No I believe that is a different issue.

You are 100% correct. This might be way I never get past the regional level in the spelling bee. Always missing the main point! Sorry m’friend.

From what I have read this is a common issue with other frameworks, including Unity, Xamarin and BuzzTouch, and it seems to be an easy fix in Xcode 6 - something like this …

if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { // use registerUserNotificationSettings} else { // use registerForRemoteNotifications}

The reason is that the way you get user permissions has changed in iOS8 and you need to get permission to show a user notification message whether local or remote.

Can I assume that Corona Labs engineers are on the case with this one?

We need a bug report for this.  It must have a test project with it, not just a lua file.  It needs a build.settings, config.lua and any resoruces needed to run and be in a .zip file.

Thanks

Rob

Hi Rob,

I submitted a bug report for this (case 35893). When can we expect this to be fixed? I need to submit a new app which contains push notifications and I believe this is affecting many other users as well. 

Thanks. 

I don’t know.  I know iOS 8 bugs are at the top of the list to fix but there are several reported bugs that also are important for people too.

Rob

Hello, this Josh with GameThrive,

We found a way to work around this issue.

For push notifications to work on iOS 8 you need to build your Corona app with the iOS 7.1 SDK so iOS 8 runs in compatibility mode for notifications. To set Corona to use iOS SDK 71. you will need to have Xcode 5.1.1 installed and must be named “Xcode” in your Applications. If you no longer have Xcode 5.1.1 installed you can still get it from Apple’s dev site and install it. Rename your current Xcode to “Xcode 6” so you can keep both on your system. After you install Xcode 5.1.1, open it and go to Xcode>Preferences and select the Locations tab. At the bottom set “Command Line Tools:” to Xcode 5.1.1". Restart Corona, rebuild your app, and then reinstall it on your device and it should work.

Josh you are a life saver! It worked perfectly. Thanks!