Prerequisites for Ionic + Fing
download latest node https://nodejs.org/en/
npm install -g typescript
- Install latest ionic and cordova
npm install -g cordova ionic
Install Dependencies & cordova Plugins
- Install iOS or Android platforms(commands are renamed)
ionic cordova platform add ios
ionic cordova platform add android
- Install the FingKit plugin(commands are renamed)
ionic cordova plugin add ./fingkit
- Go to src/app/app.component.ts
- replace FING_API_KEY with fing API Key
window.fing.validateLicenseKey("FING_API_KEY", "",
(result) => {
console.log('Licence OK: ' + result);
}, (error) => {
console.log(error);
});
Launch & build application
ionic cordova run ios --livereload
- Build for the target platforms
ionic cordova build ios
ionic cordova build android