/ionic-fing

Ionic + fing

Primary LanguageObjective-C

Prerequisites for Ionic + Fing

download latest node https://nodejs.org/en/
  • Install TypeScript
npm install -g typescript
  • Install latest ionic and cordova
npm install -g cordova ionic

Install Dependencies & cordova Plugins

  • Navigate to your project
cd /ionic-fing
  • Install NPM Dependencies
npm install
  • 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

Config Fing

  • 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

  • Launch in browser
ionic serve
  • Launch in Simulator
ionic cordova run ios --livereload
  • Build for the target platforms
ionic cordova build ios
ionic cordova build android