Hey Todor, thanks for the reply.

I didn’t consider that the app might be inactive when the notification is handled.

If I understand correctly the “pending” part of PendingIntent is an authentication macanizm (token in this case) that allow other processes to trigger an intent in mine.

Are there other usecases for it other than notifications?

Written by

Full Stack Developer, Team Leader, Independent. More from me at https://hakibenita.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store