Cordova Basic Example

Cordova Basic

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.

Source Code

You can browse the source code for this example at the Evothings GitHub repository

The file index.html is the main file of the app.

What You Need

This example runs in Evothings Client on Android or iOS.

You need to run this example in the Evothings Client app. Alternatively, you can build a Cordova application if you wish to distribute the app. See page Evothings Client for further details.

How To Get Up And Running

Follow these steps to get started with this example:

  • Run the Evothings Workbench on your desktop/laptop computer.
  • Run the Evothings client app on an Android mobile device and connect to the Workbench.
  • Launch the example "Cordova Basic" from the Workbench window.
  • Try out the buttons in the app and the compass heading sensor.
  • For instructions on how to build a stand-alone native app, check out the Cordova build guide.