HomeWhat isWhat is a PendingIntent callback?

What is a PendingIntent callback?

A PendingIntent callback is a token that you provide to a foreign programme (such as NotificationManager, AlarmManager, Home Screen AppWidgetManager, or other 3rd party applications), allowing the foreign application to use your application’s permissions to execute a predefined piece of code.

How do I cancel Alarm Manager?

If you want to cancel an alert but don’t have a reference to the original PendingIntent that was used to create the alarm, you must rebuild it exactly as it was when it was generated. The AlarmManager considers two Intents to be comparable if they have the same action, data, type, class, and categories.

Also Read: