ionic
To continue with the implementation of the SDK in your project, you must have the Ionic CLI installed. If you don't have it installed, you can install it with the following command:
npm install -g @ionic/cli
ionic works with Cordova (Autentikar plugin local), so you must have the Cordova CLI installed. If you don't have it installed, you can install it with the following command:
npm install -g cordova
You must follow the cordova guide to install the SDK in your project. You can find the guide here.
Quick start
Our team has created a simple plugin available for Android e iOS to facilitate the implementation of the SDK in your project. Request access to the plugin by sending an email to [email protected].
Once you have access to the plugin, you can install it with the following command:
ionic cordova plugin add ../AKCordovaPlugin --link
Set up
1. Html Configuration
For call the plugin you need to add the following script in your html file:
<script>
var cordova = window.cordova;
</script>
2. JS/TS Configuration
Where you want to call the plugin you have to add the following code in your file:
declare var cordova: any;
cordova.exec(success, error, "AKCordovaPlugin", "autentikar", [json]);