"Download fail" error on check
Closed this issue · 2 comments
soukicz commented
Hi,
I am trying to integrate your plugin, but I can't get past "check". I am using this code:
await cordova.plugins.apkupdater.check('https://mobile-storage-assets-simplia.s3-eu-central-1.amazonaws.com/apk/manifest.json')
With this error (and no stack trace or anything):
Uncaught Download failed
I am new to cordova and have no idea how to debug this. Can you please help? :)
(Cordova 8.1.0 on android)
kolbasa commented
The 'manifest.json' is added to the URL by the plugin itself.
So the URL should look like this:
await cordova.plugins.apkupdater.check('https://mobile-storage-assets-simplia.s3-eu-central-1.amazonaws.com/apk')
instead of:
await cordova.plugins.apkupdater.check('https://mobile-storage-assets-simplia.s3-eu-central-1.amazonaws.com/apk/manifest.json')
But I'm glad it came up. I will adjust it so that both paths are accepted in the next release.
soukicz commented
Thank you! It now works as expected :) I was looking for problem with CORS etc and it was just invalid url :))