Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading assets bug #107

Closed
KennyBarraud opened this issue Aug 8, 2017 · 3 comments
Closed

Downloading assets bug #107

KennyBarraud opened this issue Aug 8, 2017 · 3 comments

Comments

@KennyBarraud
Copy link

KennyBarraud commented Aug 8, 2017

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
Copy link
Owner

agamemnus commented Aug 8, 2017

Did you specify a public key?

Possibly related to #94.

@KennyBarraud
Copy link
Author

KennyBarraud commented Aug 8, 2017

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants