Make Apps That Access Native Device Functionality. With the Apache Cordova platform you can create mobile apps that access native device functionality such as accelerometer, compass, and other sensors, file system, networking, and so on. This app demonstrates the structure of a basic Cordova app and how to read the accelerometer and display a native confirm dialog.
You can browse the source code for this example at the Evothings GitHub repository
This example runs in Evothings Viewer on Android or iOS.
You need to run this example in Evothings Viewer. Alternatively, you can build a Cordova application if you wish to distribute the app. Read more in the documentation of the Evothings Viewer.
Follow these steps to get started with this example: