예제 #1
0
    public void ShowLocalNotifacation(string id)
    {
        GetNotifacationByName(id);
        AndroidNotificationBuilder builder = new AndroidNotificationBuilder(currentNotifacation.notifacationID, currentNotifacation.title, currentNotifacation.body, currentNotifacation.timer);

        builder.SetIconName(currentNotifacation.iconName);
        builder.SetVibration(currentNotifacation.vibrate);
        builder.SetSoundName(currentNotifacation.notifaacationSoundName);
        AndroidNotificationManager.Instance.ScheduleLocalNotification(builder);
    }
예제 #2
0
 public int AddLocalNotificationBySeconds(string title, string msg, int seconds)
 {
     if (Application.platform == RuntimePlatform.Android)
     {
         int next_id = AndroidNotificationManager.Instance.GetNextId;
         AndroidNotificationBuilder builder = new AndroidNotificationBuilder(next_id, title, msg, seconds);
         builder.SetLargeIcon("pushicon_72x72");
         builder.SetIconName("pushicon_36x36");
         return(AndroidNotificationManager.Instance.ScheduleLocalNotification(builder));
     }
     else
     {
         return(UM_NotificationController.Instance.ScheduleLocalNotification(title, msg, seconds));
     }
 }