mnill / cordova-app-updater

Simple plugin for hot update cordova app
MIT License
16 stars 5 forks source link

Getting error "no network connection" #4

Closed Crysalist closed 8 years ago

Crysalist commented 8 years ago

Getting error "no network connection". Used an example ionic app checked manifest and

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

Is present. Checked the server and the config.json file and other files exists on the server.\

please advise.

mnill commented 8 years ago

With server url 'http://mnillstone.com/' works? You can change server url manualy in plugins/com.likesmagia.cordova.updater/www/updater.html


        Updater = new H5AppFS(fileSystem, {}, 'http://mnillstone.com/');

Crysalist commented 8 years ago

Changed it - no luck. Keep on getting the same error. Did clean Install and still no luck.

mnill commented 8 years ago

Something has been changed in installation pipeline.

Plugin copied from


project/platfroms/android/platfrom_www


not from


project/plugins/com.likesmagia.cordova.updater/www/


For testing you can change $server_url in project/platfroms/android/platfrom_www/updater.html

I will be repaired it asap.

Crysalist commented 8 years ago

Step to recreate the issue:

  1. ionic start myApp blank
  2. cd myApp
  3. ionic platform add android
  4. cordova plugin add https://github.com/mnill/cordova-app-updater.git --variable SERVER_ADDRESS="http://mnillstone.com/"
  5. ionic build android

Then I transfer the apk to my phone. Install it and run it. I see a splashscreen and then popup "No Network Connection" with retry button.

Hope this helps

Crysalist commented 8 years ago

Once I changed the files in project/platfroms/android/platfrom_www It worked 100%.

looked at adding some progress updates ... will push it back to you once I am done.

mnill commented 8 years ago

Can you please also test my fix for installation?

Crysalist commented 8 years ago

Seems not:

ionic build android Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Carlo\myApp\hooks\after_prepare\010_add_platform_class.js C:\Users\Carlo\myApp add to body class: platform-android Error: App update could not find server_adress

Checked both places 'com.likesmagia.cordova.updater/www' and 'platform_www' still have $SERVER_ADDRESS in them

mnill commented 8 years ago

:-( mac or windows?

Edit: windows, i see

Crysalist commented 8 years ago

windows

On Tue, 15 Dec 2015 at 21:21 MniLLco notifications@github.com wrote:

:-( mac or windows?

— Reply to this email directly or view it on GitHub https://github.com/mnill/cordova-app-updater/issues/4#issuecomment-164862901 .

mnill commented 8 years ago

okay, i give up. I can't find not ugly way to inject server_url on plugin installation. Than i just fixed readme.

mnill commented 8 years ago

Resolved in 0.9