agamemnus / cordova-plugin-xapkreader

Easily access Google Play APK expansion file data.
32 stars 55 forks source link

Downloading assets bug #107

Closed KennyBarraud closed 5 years ago

KennyBarraud commented 6 years ago

Hi ! I got a bug when I use my signed apk. It displays a dialog "downloading assets" then my app fails to execute. I have also a download bar at 0mb/0mb. When I check the error report on Google Play Console it says this . What I have done wrong ? Do I need to change these variables ?

<variable name="XAPK_TEXT_DL_ASSETS" value="Downloading assets…" />
<variable name="XAPK_TEXT_PR_ASSETS" value="Preparing assets…" />
<variable name="XAPK_TEXT_DL_FAILED" value="Download failed." />
<variable name="XAPK_TEXT_ERROR" value="Error." />
<variable name="XAPK_TEXT_CLOSE" value="Close." />
<variable name="XAPK_MAIN_VERSION" value="0" />
<variable name="XAPK_PATCH_VERSION" value="0" />
<variable name="XAPK_MAIN_FILESIZE" value="0" />
<variable name="XAPK_PATCH_FILESIZE" value="0" />
<variable name="XAPK_AUTO_DOWNLOAD" value="true" />
<variable name="XAPK_PROGRESS_FORMAT" value="percent" />
agamemnus commented 6 years ago

Did you specify a public key?

Possibly related to https://github.com/agamemnus/cordova-plugin-xapkreader/issues/94.

KennyBarraud commented 6 years ago

Yes I have set the public key with the one in the Google Play Console give in Base64 in the Services & APIs menu.

Litte precision : It happens only with a signed apk, not with the debug one. The test device is on Android 7.0. I was triying to follow this tutorial.

KennyBarraud commented 6 years ago

Ok so I solved the issue ! The fact is that the public key was set in the config.xml file but not in the android.json of the cordova plugin folder. Other error is when you set the key when you add the plugin in command line => The result is that there are two "XAPK_PUBLIC_KEY" variable and the build fails.