Cordova Basic Example

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 on iOS and Android devices.

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 App 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 Cordova app, start out by visiting the Cordova documentation site. (Yes, we will provide support for building stand-alone Cordova apps in future versions of Evothings Studio!)

Copyright © 2013-2014 Evothings AB