I'd like to make a server side application access bluetooth device. When a page is opened in a smart phone browser, could it download everything needed to access bluetooth device and fill in the formfields on the same page? In other words, can pack Evothings in some javascript files and load it like jQuery, and then run scripts as usual?What files do I need, and how to intergate Cordova Bluetooth?Regards, Zdravko

Normally, BLE (Bluetooth Smart, Bluetooth Low Energy) is outside of the safety of the browser sandbox. In Evothings Studio, we use the Cordova plug-in infrastructure to extend the capabilities of a web view -- inside an app, we actually don't use the phone's browser app as such.

If you have a server-side application, you could well have a mobile app download such a file (html, js, css et cetera) either on start-up or on demand (onClick or similar) from inside the web view. This page could be pre populated with data, and using the mobile apps access to Bluetooth you could add more info to e.g. a HTML Form, so that some of the info came from the server, and some of it came from the app via the Cordova BLE plug-in for instance.

Does this address your question, and is there any specific scenario you'd like to see happen? I think the BLE Scan example could be a good starting point for your study, and you could expand from there.

I'd like to build a small starting Evothings app on an android, that acts like a "safe browser", loading its index.html files from my web server. To start with the app would have an index.html with a form submit button "connect to web server" and the response would contain another index.html.

Arriving late at the party here! Hope the question is still valid, or even better solved

You can certainly build a "safe browser" for your app. This is basically what Evothings Client is.

The trick is serving the cordova.js files. In Evothings Client they are bundled with the app and accessed locally, using special native code hacks.

In your own Cordova app, you can use the same code hacks, or you can serve cordova.js and associated files from the server.

The problem is cordova.js et al are different depending on the platform (iOS/Android), so you have to serve them using some conditional mechanism. The simplest way is perhaps to just have one url for the Android version of the app, and another for the iOS version.

Hi!Thanks. I found that if I stick to AJAX remote calls only then all the html and javascript calls to localfunctions would be processed as if they were hardcoded by the on board local Evothings client. Which isactually what I was looking for: to get different functionality from client without having to update phoneclient to new application.