private GameLocalNotification DoCreateNotificationGeneralPush1210()
    {
        GameLocalNotification notification = new GameLocalNotification("12:10", "I miss you");
        DateTime dateTime = DateTime.Now.AddDays(1);
        DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 12, 10, 0);

        notification.SetFireDate(fireTime);
        notification.SetRepeatInterval(GameCalendarUnit.Day);
        return(notification);
    }
    private GameLocalNotification DoCreateNotificationTwoTasks()
    {
        GameLocalNotification notification = new GameLocalNotification("20:00 two tasks", "I miss you");
        DateTime dateTime = DateTime.Now.AddDays(0);
        DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 20, 0, 0);

        notification.SetFireDate(fireTime);
        notification.SetRepeatInterval(GameCalendarUnit.Day);
        return(notification);
    }
    private GameLocalNotification DoCreateNotification3Days()
    {
        GameLocalNotification notification = new GameLocalNotification("3 days", "I miss you");
        DateTime dateTime = DateTime.Now.AddDays(3);
        DateTime fireTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 21, 0, 0);

        notification.SetFireDate(fireTime);
        notification.SetRepeatInterval(GameCalendarUnit.Week);
        return(notification);
    }
    public static void ScheduleLocalNotification(GameLocalNotification notification)
    {
#if UNITY_IPHONE
        string title    = notification.GetTitle();
        bool   hasTitle = (title != null);
        if (title == null)
        {
            title = "";
        }

        LocalNotification localNotification = new LocalNotification();
        localNotification.alertAction = title;
        localNotification.alertBody   = notification.GetDescription();
        localNotification.fireDate    = notification.GetFireDate();
        localNotification.applicationIconBadgeNumber = 1;
        localNotification.soundName      = LocalNotification.defaultSoundName;
        localNotification.repeatInterval = (UnityEngine.CalendarUnit)(notification.GetRepeatInterval());
        localNotification.hasAction      = hasTitle;

        NotificationServices.ScheduleLocalNotification(localNotification);
#endif
    }