Did you also handle the needed restart on new version being installed?

When user updates the app, Android will kill the process, then dispatch a system Intent to it after installation completion. It will receive a warm start whereby the Saved Instance State is recoverable.

Reply to this note

Please Login to reply.

Discussion

Wow no I wasn't aware that's crazy. Does it need migrations?

Do you wanna help dev with bitchat btw? I could use a pro to show me the way.

> Wow no I wasn't aware that's crazy. Does it need migrations?

Unsure what you mean by migrations. The OS will install the new version over the old one. If you have defined in your manifest a broadcast receiver for `android.intent.action.ACTION_PACKAGE_REPLACED`, you'll receive the Intent upon completion and can restart your services and what not.

> Do you wanna help dev with bitchat btw? I could use a pro to show me the way.

I'm no pro 😂, just have been around the block once or twice. I'd love to, but have my plate full with a grant from nostr:nprofile1qqs8suecw4luyht9ekff89x4uacneapk8r5dyk0gmn6uwwurf6u9ruspzpmhxue69uhkumewwd68ytnrwghszrnhwden5te0dehhxtnvdakz7d8grcu working on kmp-tor for the next 3 months, then back to my other project.

See: https://developer.android.com/reference/android/content/Intent#ACTION_PACKAGE_REPLACED

Sorry, the string value to declare in your manifest is actually `PACKAGE_REPLACED` not `ACTION_PACKAGE_REPLACED