GiuDev
Member
Hi all,
I have a hobby project in my mind, and would like to develop with B4X. I will start saying I'm not a B4X developer yet, I know about B4X because we used for a mobile app some years ago (but developer was my partner, not me, and using native interface, can't ask to him).
The thing is I'm not sure wich approach to take.
The Project it's a chess tool companion. Because Chess has a lot of support coming for javascript libraries, I think this is the best approach to follow. Now, problem is how to integrate/do it.
Two options available (I guess)
1. Webview with chessboard and in some way interact with this JS code plus B4XPages interface.
or
2. Develop directly as a web server app, and show all inside a webview.
Right know a couple of doubts comes to my mind.
About point 1:
I don't know if it's possible to do it. If I can't control JS side and retrieve data/listen to events from there. And if possible, what could be the best approach, ABMaterial? Other option?
About point 2:
Develop directly as a webapp with bundled server, could be interesting, the problem I see here is, If later I wanna release mobile version, I don't know if b4server will run on android/ios.
Main Idea is to run as a local application, no need of internet at all, then as a hosted webapp is not an option.
Than, main question could be. What approach do you think is better for a desktop app communicating with JS libraries, and with an idea about maybe release the same project on mobile apps?
Regards.
I have a hobby project in my mind, and would like to develop with B4X. I will start saying I'm not a B4X developer yet, I know about B4X because we used for a mobile app some years ago (but developer was my partner, not me, and using native interface, can't ask to him).
The thing is I'm not sure wich approach to take.
The Project it's a chess tool companion. Because Chess has a lot of support coming for javascript libraries, I think this is the best approach to follow. Now, problem is how to integrate/do it.
Two options available (I guess)
1. Webview with chessboard and in some way interact with this JS code plus B4XPages interface.
or
2. Develop directly as a web server app, and show all inside a webview.
Right know a couple of doubts comes to my mind.
About point 1:
I don't know if it's possible to do it. If I can't control JS side and retrieve data/listen to events from there. And if possible, what could be the best approach, ABMaterial? Other option?
About point 2:
Develop directly as a webapp with bundled server, could be interesting, the problem I see here is, If later I wanna release mobile version, I don't know if b4server will run on android/ios.
Main Idea is to run as a local application, no need of internet at all, then as a hosted webapp is not an option.
Than, main question could be. What approach do you think is better for a desktop app communicating with JS libraries, and with an idea about maybe release the same project on mobile apps?
Regards.