The cross-platform client application for OpenBioMaps to support data collection on the field
Branch: develop
Clone or download
Latest commit 6f2265c Dec 5, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
OpenBioMapsApp Telefontól lekérdezett GPS koordináták megjelenítése Google Maps-en Jun 15, 2017
.gitignore Remove dummy title from settings Apr 10, 2017
.travis.yml Add crosswalk to support Android from 4.1 Mar 26, 2017
LICENSE
README.md Update README.md Dec 5, 2017
form.json json update Dec 27, 2016
obm.keystore.enc Create release build Mar 19, 2017

README.md

build status

Deprecated

Due to the limitations of the Ionic/Cordova platform the devlopment of the cross-platform client application has been abandoned in favor of the native Android client implementation which you can find here: Android client repo

ionic-app

The cross-platform client application for OpenBioMaps to support data collection on the field

Prerequisite

Make sure you have a recent Node.js installation on your computer (Node.js 6 or greater) along with Cordova and the Ionic CLI.

You can check the current Node.js version on your machine by typing node --version in the terminal.

To install Ionic and Cordova use the following command in your terminal. npm install -g ionic cordova

For more info see the Ionic installation guide.

Build and Run

To build and run the code locally you need to create a cordova folder. You can do it by running the following commands in the app project folder.

npm install
ionic state restore

After this you can run the app locally in the browser using the ionic serve command. You can run the app in an emulator using the ionic emulate or on a device using the ionic run commands.

CORS

When run in a browser with ionic serve you will most probably run into issues with HTTP access control, since your origin is localhost, and if you want to access data from the web than your origin will not match with your target. There are several ways to handle this issue, which the ionic team covers in this blog post.

The easiest way to solve the issue however, is to allow cross-origin HTTP requests in your browser. If you are using chrome there is a plugin with which you can toggle it on and off.