You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an integer that matches the version code of the APK with which the expansion is first associated (it matches the app's android:versionCode value).
"First" is emphasized because although the Play Console allows you to re-use an uploaded expansion file with a new APK, the expansion file's name does not change—it retains the version applied to it when you first uploaded the file.
When dealing with large expansion files, it is likely that app developers will want to reuse them, in order to avoid forcing unnecessary re-downloads of the same expansion content when an app update is published.
The underlying expansion file downloader library around which this plugin is based already supports this, as it queries the expected expansion file name(s) and checks for their existence on the file system in order to determine whether a download is required or not:
If the Java plugin were able to provide a means for the C# script to call a native method that performs the same check as DownloaderService, then expected expansion file names could be returned and their existence checked with File.Exists.
Currently, you could always call IGooglePlayObbDownloader.FetchOBB, rather than first checking if GetMainOBBPath returns null (as in DownloadObbExample) and allow the native plugin to decide if a download is required, but then there's no easy way to check if/when the native plugin has finished downloading, because waiting for GetMainPath to not be null to indicate completion will result in an infinite wait, due to the version codes mismatch.
The text was updated successfully, but these errors were encountered:
As per https://developer.android.com/google/play/expansion-files#Filename, it is possible to have a case where the OBB and app version codes are different to one another:
When dealing with large expansion files, it is likely that app developers will want to reuse them, in order to avoid forcing unnecessary re-downloads of the same expansion content when an app update is published.
The underlying expansion file downloader library around which this plugin is based already supports this, as it queries the expected expansion file name(s) and checks for their existence on the file system in order to determine whether a download is required or not:
UnityOBBDownloader/src/unityOBBDownloader/src/main/java/com/google/android/vending/expansion/downloader/impl/DownloaderService.java
Lines 683 to 692 in d77e66f
However, the C# implementation makes the assumption that the expansion files will have the same version number as the app:
UnityOBBDownloader/Assets/Scripts/GooglePlayDownloaderImpl.cs
Lines 119 to 127 in d77e66f
If the Java plugin were able to provide a means for the C# script to call a native method that performs the same check as DownloaderService, then expected expansion file names could be returned and their existence checked with
File.Exists
.Currently, you could always call
IGooglePlayObbDownloader.FetchOBB
, rather than first checking ifGetMainOBBPath
returnsnull
(as inDownloadObbExample
) and allow the native plugin to decide if a download is required, but then there's no easy way to check if/when the native plugin has finished downloading, because waiting forGetMainPath
to not benull
to indicate completion will result in an infinite wait, due to the version codes mismatch.The text was updated successfully, but these errors were encountered: