I'm developing an Android app and have been publishing weekly update for the past 3 years. From time to time I have users telling me that the app lost all its content after a recent update. There's no code to remove the app data dynamically in my app and I'm sure that the user didn't uninstall the app and didn't clear the app cache.
I'm guessing that it might be a Play Store bug. A user told me recently he was using my app (listening to an audio file in the background) while the update occurred. At the end of the audio file the playback stopped. He opened the app to see all his data gone. Is there a way to prevent play store updates if the app is used (the app locks the database for write access during playback) ? It's not a major issue. It may affect like 0.01% of the users but I can avoid this issue, please let me know ;)