So we’re using the fairly standard method for clearing badges in iOS:
UnityEngine.iOS.LocalNotification notification = new UnityEngine.iOS.LocalNotification ();
notification.hasAction = false;
notification.applicationIconBadgeNumber = -1;
UnityEngine.iOS.NotificationServices.PresentLocalNotificationNow (notification);
This working absolutely fine in iOS 9. However, it fails completely to clear the badge in iOS 10. Others seem to have encountered this, but no clear response from Unity? Is this a known issue, or are we clearing notifications with an incorrect method?
We’re using Unity 5.4.2f2, but also encountered it with Unity 5.3.
Any help would be greatly appreciated. Are we going to be stuck rolling our own iOS plugin to resolve the issue?