No description, website, or topics provided.
Clone or download
mauron85 lock package dependencies
"nativebase" and "css-loader" are using incompatible version of the "color" package.
Resulting in runtime error: "color(...).darken(...).hex is not a function"
as described here: GeekyAnts/NativeBase#1354
Latest commit cc1fc6d Oct 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
hooks initial commit Jun 6, 2016
res fix app icon for recent cordova Sep 15, 2016
scripts upgrade to cordova-android@7.1.0 May 29, 2018
src Changes: Oct 27, 2018
www update instructions Nov 21, 2017
.babelrc fix app loading for cordova Nov 18, 2017
.gitignore lock package dependencies Oct 27, 2018
README.md update screenshot May 8, 2018
config.xml Changes: Oct 27, 2018
package.json lock package dependencies Oct 27, 2018
screenshot.png update screenshot May 8, 2018
webpack.config.js Workaround for react-native-web issue 932 May 8, 2018
yarn.lock Changes: Oct 27, 2018

README.md

Example Background Geolocation app.

Screenshot

Description

Example app shows some possibilities of cordova-background-geolocation plugin.

Compatibility

Name Version
Cordova CLI 7.1.0
Cordova-Android 6.3.0

How to build

Install dependencies

npm install

Build application

npm run build

* App will be built into www folder.

Add Google Maps API key

Edit variable GOOGLE_MAPS_API_KEY in www/index.html

Build Cordova app

Replace platform with one of supported platforms: android, ios. In this example we will build for Android.

cordova platform add android
cordova build android

There is after_platform_add hook in config.xml which runs script that install all required plugins.

Run on device

iOS

You will need to install ios-deploy package.

npm -g install ios-deploy
cordova run ios --device

Android

cordova run android --device

Run in simulator

iOS

You will need to install ios-sim package first

npm -g install ios-sim

Run in default emulator

cordova emulate ios

You can use cordova run ios --list to see all available targets and cordova run ios --target=target_name to run application on a specific device or emulator (for example, cordova run ios --target="iPhone-6").

Android

To deploy the app on a default Android emulator.

cordova emulate android

You can use cordova run android --list to see all available targets and cordova run android --target=target_name to run application on a specific device or emulator (for example, cordova run android --target="Nexus4_emulator").

App Development

Cordova Example App is sharing code with react-native variant. Native libraries are aliased to use their web variants. That is possible thanks to amazing webpack, native-base-web, react-native-web projects.

For development install and use webpack-dev-server:

webpack-dev-server --content-base src/

iOS quirks

If you're using XCode, boot the SampleApp in the iOS Simulator and enable Debug->Location->City Drive.