So I've copied the expansion package sample for Android and made it run based on the guide provided by google. I've successfully made it work by storing a local .obb file but I can't manage to get it to work with downloading the .obb file. The state is changed to IDownloaderClient.STATE_COMPLETED
but no file it to be found.
Steps I've been through:
- Make sample run (updated with
BASE64_PUBLIC_KEY
,new package name
,version number
) - Successfully test with local .obb file.
- Make apk and upload to Play together with expansion file.
- Install signed apk and run app. <-- here it says download was a success but without giving any progress updates during the download process.
Please help getting the expansion file downloaded.
Edit: At step 4 I now get Download failed because the resouces could not be found.
Edit 2: So after debugging I see that status changes to no download required but it fails to validate file as it is missing. So for some reason it thinks the file has been downloaded.
Edit 3: So inside DownloaderService.class we have a run() method which makes a getExpansionURLCount()
which returns 0. Documentation says: this will return zero if there has been no LVL fetch in the current session
. After more digging I see that the response I get from Google in processServerResponse()
has the response code 256 and no keys with FILE_URL
. So what is the cause for this?