A simple example for building an app using the Onegini Cordova Plugin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
src CORDOPLUG-276 fingerprint fallback fix Apr 24, 2018
.babelrc EXAMPLECOR-3 Setup basic vue template for with router and Login view Dec 12, 2016
.editorconfig CORDOPLUG-159 Add .editorconfig Feb 10, 2017
README.md Update docs to reflect the TS config change Mar 21, 2017
config.xml Merge remote-tracking branch 'origin/EXAMPLECOR-28' Aug 9, 2018
google-services.json CORDOPLUG-250 Add dummy google-services.json Aug 16, 2017
onegini-config-android.zip Update TS config Apr 19, 2018
onegini-config-ios.zip Update TS config Apr 19, 2018
package-lock.json CORDOPLUG-323 add package-json.lock to the repo Aug 28, 2018
package.json CORDOPLUG-323 update babel-core to version 6.26.3 Aug 28, 2018
taco.json EXAMPLECOR-9 Update dev dependencies Feb 1, 2017
webpack.config.js EXAMPLECOR-8 Update webpack config Dec 22, 2016


Onegini Cordova Example app

This app serves as a simple example for building an app using the Onegini Cordova Plugin.

Source structure

This app is build with the Vue.js framework. Every view has it's own component in src/views, containing all it's HTML, JS and CSS. Components (like buttons or lists for specific items) are located in src/components.

Running the Example app


To run the Example App, you need to be able to build Cordova apps for Android and iOS on your machine. Refer to the Apache Cordova getting started guide if you need help setting up your Cordova environment.

Make sure you have the SDK Configurator installed in your $PATH. (See the getting started guide of the Onegini Cordova Plugin)

Finally you need to have a valid Token Server configuration. We have already set you up with this, so you are good to go here :-). In order to see what the options are to supply the Token Server configuration see the getting started guide.


Clone this repository

git clone https://github.com/onegini/cordova-example-app.git
cd cordova-example-app

Build www assets

npm install
npm run build

Add the Android and/or iOS platform

cordova platform add (android|ios)...

Run the example app

cordova run (android|ios)...