android-js / androidjs

Platform to build android app using node js
MIT License
463 stars 109 forks source link

Live-reload/Debugging Feature #29

Open ghost opened 5 years ago

ghost commented 5 years ago

As the title suggests, a feature to reload the web-view(url) & "back-end"(main.js) files during development for debugging purposes

Chhekur commented 5 years ago

We are working on it but I can suggest you a way to do that First one You can execute main.js file using node and can open index.html in browser

Or you can use second option You can use android emulator and can debug via adb

appsdevpk commented 5 years ago

Or you can use weinre

DazornSama commented 4 years ago

I executed main.js but at which port can i debug it? 3000? The documentation is a bit empty about that...

danbulant commented 4 years ago

@Dazorn96 main.js is just your code. You must create a web-server, either your way (with express or others) or by existing ways (live-reload has the functionality). If you need the main.js code, for now, you need to regenerate app.

DazornSama commented 4 years ago

@Dazorn96 main.js is just your code. You must create a web-server, either your way (with express or others) or by existing ways (live-reload has the functionality). If you need the main.js code, for now, you need to regenerate app.

Oh, that's what i wanted to know! Thank you :) I think this should be inserted in the documentation of AndroidJS because is not so much clear.

One last question.. When i release the app as apk, i have to remove the web server section?

Chhekur commented 4 years ago

Hey, we have created a slack channel for support & discussion: join here