Search Issue Tracker

Fixed in Unity 4.5.6

Votes

1

Found in

4.6.0b18

Issue ID

633483

Regression

No

NotificationServices.RegisterForRemoteNotificationTypes is not working on iOS8+

iOS

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 2No workaround

1) What happened

NotificationServices.RegisterForRemoteNotificationTypes no longer works on iOS8

2) How can we reproduce it using the example you attached.

- Create a new iOS project
- Call NotificationServices.RegisterForRemoteNotificationTypes
- Run on an iOS device
- Observe the following error in Xcode's output: registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.

Comments (11)

  1. 84a42812162b29bda9e0d7e408d6ab1f?d=mm

    Prodigga

    Jan 02, 2015 02:54

    I have found that this is fixed in 4.6.1f1. Upgrading from 4.5 > 4.6 is a fairly smooth process, so upgrade asap! :)

  2. 03a8f02f96a3f24521b10047a93f652d?d=mm

    Amitloaf

    Dec 21, 2014 08:46

    This is not fixed yet.

  3. 5033feb257f3472c43bd6c45eb3202dd?d=mm

    Mikeysee

    Nov 28, 2014 08:40

    Sorry I should have said 4.6.0f3

  4. 5033feb257f3472c43bd6c45eb3202dd?d=mm

    Mikeysee

    Nov 28, 2014 08:39

    This is still happening in Unity 4.6 (release)

  5. A8335d59c7fb15b70f0adcf1151e736b?d=mm

    David Berger

    Nov 20, 2014 11:08

    The bug was fixed in 4.5.5p1 and will go to 4.6.0p1.

  6. 2b3ad84c820d9a9e6dbeae9bd06d59be?d=mm

    gezmo

    Nov 13, 2014 17:50

    Still happening in the 4.6 RC

  7. 7e827196e8d4a108f637922017ebd8d3?d=mm

    miacoviello

    Nov 04, 2014 02:32

    The fix below is for the Google Play Services plugin for Unity. If this is just an issue with your XCode project, replace the line in your project with the fixed version of the registerForRemoteNotification types and it will work.

  8. 7e827196e8d4a108f637922017ebd8d3?d=mm

    miacoviello

    Nov 04, 2014 02:32

    The fix below is for the Google Play Services plugin for Unity. If this is just an issue with your XCode project, replace the line in your project with the fixed version of the registerForRemoteNotification types and it will work.

  9. 7e827196e8d4a108f637922017ebd8d3?d=mm

    miacoviello

    Nov 04, 2014 02:30

    Follow these instructions to fix the issue:

    Edit the file "GPSInterface.m" and replace the line:

    [[UIApplication sharedApplication] registerForRemoteNotificationTypes:
    (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert)];

    with this:

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; [[UIApplication sharedApplication] registerForRemoteNotifications]; } else { [[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)]; }

  10. 9961e37a2342842b3dbebcf10f8be1f8?d=mm

    ekawahara

    Oct 14, 2014 16:44

    Agree with the above comment, tested the issue on Unity 4.5.5f1 and this is still an occurring issue.

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.