Cordova

Getting started

Install the cordova plugin:

cordova plugin add akiles-cordova

The plugin defines a global akiles object. Although the object is in the global scope, it is not available until after the deviceready event.

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    console.log(akiles);
}

Card emulation

Follow both the Android and iOS guides to configure card emulation.

Note you need to call startCardEmulation() on iOS only. On Android card emulation works system-wide, simply by having your app installed and the session added. You should check whether you’re on iOS or not in order to show/hide the “Start card emulation” button.

Demo app

Demo app screenshot

The repo contains an SDK demo app that showcases all major SDK features:

The app displays real-time status updates for both internet and Bluetooth operations, making it easy to test different scenarios.