Forum Xamarin Xamarin.Android

Sending Local Notifications after some time in Xamarin Android

I am using Xamarin with Visual Studio 2015. I want to send local notifications after every x minutes, how to achieve this goal? I built notification as

// Instantiate the builder and set notification elements:
Notification.Builder builder = new Notification.Builder(this)
.SetContentText("Time to go")

    // Build the notification:
    Notification notification = builder.Build();

    // Get the notification manager:
    NotificationManager notificationManager =
    GetSystemService(Context.NotificationService) as NotificationManager;

    // Publish the notification:
    const int notificationId = 0;
    notificationManager.Notify(notificationId, notification);

now I want to trigger this notification after every x minutes.

Need Urgent Help

Any code appreciated

Best Answer


  • LajeshDLajeshD USMember ✭✭
Sign In or Register to comment.