Search Unity

Mobile notification not repeating

Discussion in 'Android' started by georgikgeo25, Jun 27, 2020.

  1. georgikgeo25

    georgikgeo25

    Joined:
    Mar 24, 2020
    Posts:
    5
    The notification is not repeated
    is doing something annoying what does that mean? either put the package in order or don't put it in




    void CreateNotifChanel()
    {
    var c = new AndroidNotificationChannel()
    {
    Id = "notifi",
    Name = "playreminder",
    Importance = Importance.High,
    Description = "Reminds the player to play the game",
    };
    AndroidNotificationCenter.RegisterNotificationChannel(c);

    }

    void SendNotification()
    {
    var notification = new AndroidNotification();
    notification.Title = "Help the Balls cross the realms";
    notification.Text = "Play Now and Unlock levels and stars";
    notification.FireTime = System.DateTime.Now.AddSeconds(10); new System.TimeSpan(0, 0, 10);
    notification.SmallIcon = "icon_0";
    notification.LargeIcon = "icon_1";
    notification.ShouldAutoCancel = true;


    AndroidNotificationCenter.SendNotification(notification, "notifi");

    It doesn't work on anything

    }