PendingIntents
A PendingIntent is a token that you give to another application or system component to perform a predefined action on your app’s behalf at some later time. It wraps an Intent and grants the recipient the authority to execute the action with your app’s permissions.
A PendingIntent is created using one of three factory methods: PendingIntent.getActivity, PendingIntent.getBroadcast, or PendingIntent.getService. Each method
Common use cases include scheduling actions with the AlarmManager, responding to user interaction in a notification,
Mutability flags are required starting in Android 12 (API level 31). When creating a PendingIntent you must
Security considerations include exposing PendingIntents to untrusted apps, so use explicit intents, prefer immutable PendingIntents when