예제 #1
0
    void OnApplicationPause(bool paused)
    {
        string title   = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationTitle);
        string message = LocalizeMgr.Instance.GetLocalizeStr(LocalizeStringKey.NotificationMessage);

        if (paused)
        {
            OCBridge.LocalRepeatWeekNotificationMessage(title, message);
            //OCBridge.LocalIntervalNotificationMessage(title, message, 10);
        }
        else
        {
            OCBridge.ClearLocalNotification();
        }
    }
예제 #2
0
 void Awake()
 {
     NotificationServices.RegisterForNotifications(NotificationType.Alert | NotificationType.Badge | NotificationType.Sound);
     OCBridge.ClearLocalNotification();
 }