Search Issue Tracker
Not Reproducible
Votes
1
Found in
4.5.5p2
Issue ID
646695
Regression
Yes
Local notifications are not working on iOS 8
To Reproduce:
1. Build the attached project, and deploy it to iOS
2. On iOS 8 devices none of the notifications from the 'NotificationTest.cs' script are displayed.
can be fixed by adding the following to the start of the 'DidFinishLaunchingWithOptions' in 'UnityAppController.mm':
float version = [[[UIDevice currentDevice] systemVersion] floatValue];
if (version >= 8.0)
{
//printf_console("---> Running on iOS 8.0 > didFinishLaunchingWithOptions() Added my code //av \n");
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes: (UIRemoteNotificationTypeBadge
|UIRemoteNotificationTypeSound
|UIRemoteNotificationTypeAlert) categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
}
and this function after 'DidFinishLaunchingWithOptions' :
- (void)application: (UIApplication *)application didRegisterUserNotificationSettings: (UIUserNotificationSettings *)notificationSettings
{
float version = [[[UIDevice currentDevice] systemVersion] floatValue];
if (version >= 8.0)
{
//printf_console("---> didRegisterUserNotificationSettings() //av \n");
[application registerForRemoteNotifications];
}
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment