Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Quick start instructions no longer work on windows #62

Closed
cleaverpj opened this issue Dec 9, 2015 · 5 comments
Closed

Quick start instructions no longer work on windows #62

cleaverpj opened this issue Dec 9, 2015 · 5 comments

Comments

@cleaverpj
Copy link

Hi,

I managed to get this working with version 1.0 after someone fixed the file reference problem with windows. I came back to use it for another project and it no longer seems to work with an actual android device, although I did get it to work with the emulator..

The manifest file is getting populated properly, and everything looks OK, but when running the server and a physical android client, the server doesn't report that a client has connected, nor does it push updates. It worked on the emulator, but not on a device.

Cheers

Phil

@cleaverpj
Copy link
Author

with ref to above, I'm using cordova 5.4.1, latest hcp, windows 7 and x86 emulator.

@nikDemyankov
Copy link
Member

Hi,

Can you open Android Studio, launch the app on the device and check the logs in the console? There should be some info on what is happening. It may not fetch the update, until plugin is ready to do so. And this means, that it copied files from www folder onto external storage. And maybe it can't do that for some reason. Maybe, no enough free space, or some permission block.

@cleaverpj
Copy link
Author

The Android log tells me..

12-12 11:24:45.276: D/CHCP(21735): Starting loader worker 1449894285274
12-12 11:24:45.296: D/dalvikvm(21735): GC_FOR_ALLOC freed 307K, 14% free 3478K/4004K, paused 23ms, total 25ms
12-12 11:24:45.516: W/System.err(21735): java.net.UnknownHostException: Unable to resolve host "13e97860.ngrok.com": No address associated with hostname
...
12-12 11:24:45.536: D/CHCP(21735): Failed to download application config
12-12 11:24:45.536: D/CHCP(21735): Failed to update

If I go to http://13e97860.ngrok.com/ in a browser I see my updated site.

@nikDemyankov
Copy link
Member

java.net.UnknownHostException is a network issue, not a plugin issue. If you can open it in a browser - then server is up and running. If device can't reach it - that's some problem with the connection from device to your computer. Maybe Windows somehow blocks it, don't know. Plugin it self just tries to open this link, and if it can't - it can't do anything.

@cleaverpj
Copy link
Author

Nik,

You were absolutely right, Even though devices had connectivity, I changed wifi access point on the device and it updated fine. Closing

Phil

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

No branches or pull requests

2 participants