vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 146 forks source link

I get the error code 301 file resolve fail,but i can't find my error in my xml #64

Closed DerekMar closed 6 years ago

DerekMar commented 6 years ago

This is my xml path (http://www.derekmar.cn:8080/arcgisApp/Update/AppUpdateOwner.xml),. And this is my AndroidManifest.xml image

FredeHo commented 6 years ago

Same here, even when using the same XML URL from the demo...

LanceJenkinZA commented 6 years ago

The problem is here https://github.com/vaenow/cordova-plugin-app-update/blob/b18b1b9fc860a6a975d2a5121695d2fbccfd1253/src/android/CheckUpdateThread.java#L83

As a work around, you can pass the authentication options, with authType set to a blank string.

AppUpdate.checkAppUpdate(console.log, console.error, "https://www.example.com/version.xml", {authType: ""})
vaenow commented 6 years ago

@LanceJenkinZA

Thank you so much for your solution

vaenow commented 6 years ago

npm package is already updated to 1.4.9