Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to PendingIntents when user updates the app?

I know that the data, like in sharedprefs files, doesnt get erased when a user updates his app, but what about a scheduled Broadcast? Does the PendingIntent get canceled?

like image 871
John Sardinha Avatar asked Jun 09 '16 23:06

John Sardinha


1 Answers

PendingIntents do not get canceled or deleted when the app is updated. If you've scheduled alarms before the update, those alarms will trigger after the update at the expected times.

However, if you uninstall the app, all PendingIntents, alarms, private data, databases, etc. are canceled/deleted.

like image 89
David Wasser Avatar answered Oct 01 '22 07:10

David Wasser