Some time ago I've released a beta version of my app and connected it with an APK Expansion File. Then I wanted to update my APK without touching the files and did following:
The version code of my app was 7 and the provider also had this value. The provider looks like following in my manifest:
<provider
android:name=".expansion.MyApezProvider"
android:authorities="com.bla.blabla"
android:exported="false"
android:multiprocess="true"
>
<meta-data
android:name="mainVersion"
android:value="7">
</meta-data>
</provider>
And here is a snippet of my Downloader Activity:
private static final XAPKFile[] xAPKS = {new XAPKFile(true, // true signifies a main file
7, // the version of the APK that the file was uploaded
383989643L // the length of the file in bytes
)};
I've only incremented the version code value in the manifest from 7 to 8. Because I didn't wanted to touch the expansion file. Therefore the value in the provider and Downloader Activity were still 7.
I've uploaded the new APK File and did not choose the uploaded APK Expansion File again. But this did not work. After the Users updated to the new version the video files in the app are no more available.
So I uploaded the APK File again and re-upload the APK Expansion File and that works. But that's very strange because the user have to download the expansions for every single update.
My question is: When I upload the new apk to the Google Play Console do I have to choose always the stored apk expansion file or re-upload it again? Is the behavior of APK Expansion Files different in beta and relased version?
In the following post Updating an APK in Google Play without changing the expansion file it says that this behavior only happens in draft mode but my app is not in draft mode. It is published as beta.
I would be very thankful for your help.