snipking / cordova-hot-code-push

Plugin add hot update ability to cordova app
MIT License
35 stars 16 forks source link

Failed to download application configuration file #5

Closed harisudangnanasegaran closed 2 years ago

harisudangnanasegaran commented 3 years ago

Successfully Install plugin and followed steps given by plugin, Unable to achieve not working hot code push www not updated failed to download

snipking commented 3 years ago

Any details ?

harisudangnanasegaran commented 3 years ago

while trying to invoke mobile application I am getting this error "Failed to download application configuration file" . final ApplicationConfig newAppConfig = downloadApplicationConfig(applicationConfigUrl); if (newAppConfig == null) { setErrorResult(ChcpError.FAILED_TO_DOWNLOAD_APPLICATION_CONFIG, null); return; }

snipking commented 3 years ago

Read the wiki Cordova-config-preferences and set config-file path in config.xml.

Use cordova-hcp cli to build chcp.json and chcp.manifest. cordova-hot-code-push-cli

Upload chcp.json to your server which path set in config.xml.