I’m not an Android developer and I thought it was very nicely written.

What are other usecases for a PendingIntent? And following up on your example on notifications, why would you prefer to use a pending intent rather than handling notifications as they come (I’m not 100% familiar with Android life cycle but if the pending intent can handle it I assume you can handle it in different ways as well)? In js for example, I would register a callback to handle a push event, I wouldn’t use a promise that resolves when ever a notification arives.

Thanks, Haki.

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