Setting up the App SDK

Prev Next

Use the following script tags, in the order shown, to load the Cordova App SDK.

<head>
  . . .
  <script src="nnlgateway/js/utils.js" data-nnl-use-iframe="false"></script>
  <script src="nnlgateway/js/appsdk.js"></script>
  <script src="nnlgateway/js/adaptive.js"></script>
  . . .
</head>

For the APIs to work correctly, you must load utils.js before loading the App SDK scripts. Due to platform restrictions, the App SDK iframe cannot be used in a Cordova App. To use the App SDK without iframe, set the data-nnl-use-iframe="false" attribute on the script tag for utils.js.

The App SDK scripts are included in the plugin_appsdk plugin.

The file appsdk.js contains the APIs for non-Adaptive Authentication and FIDO registration. The file adaptive.js contains the APIs for Adaptive Registration, Adaptive Authentication, and non-FIDO registration.