public void RegisterForRemoteNotifications(UnityEngine.iOS.NotificationType notificationTypes) { #if (UNITY_IPHONE && !UNITY_EDITOR && PUSH_ENABLED) || SA_DEBUG_MODE NotificationServices.RegisterForRemoteNotificationTypes(notificationTypes); DeviceTokenListner.Create(); #endif }
public void RegisterForRemoteNotifications(RemoteNotificationType notificationTypes) { #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE NotificationServices.RegisterForRemoteNotificationTypes(notificationTypes); DeviceTokenListner.Create(); #endif }
public void RegisterForRemoteNotifications(RemoteNotificationType notificationTypes) { #if (UNITY_IPHONE && !UNITY_EDITOR && PUSH_ENABLED) || SA_DEBUG_MODE string sysInfo = SystemInfo.operatingSystem; sysInfo = sysInfo.Replace("iPhone OS ", ""); string[] chunks = sysInfo.Split('.'); int majorVersion = int.Parse(chunks[0]); if (majorVersion >= 8) { _ISN_RegisterForRemoteNotifications((int)notificationTypes); } else { NotificationServices.RegisterForRemoteNotificationTypes(notificationTypes); } DeviceTokenListner.Create(); #endif }