This descirbes the JavaScript client API for AeroGear Cordova Plugins.

Push Plugin


There is a global variable named push exported by Cordova that one can use to register the device for receiving push notifications.

See the Push API docs for more info.

OTP (One Time Password) Plugin


The AeroGear.Totp namespace provides a way to create a one time password based on a shared secret that can be read via barcode scanner. This plugin depends on the barcode plugin that will automaticly get installed as well.

See the AeroGear.Totp API docs for more info.

Crypto Plugin


The AeroGear.Crypto namespace provides a way to encrypt and decrypt data, there is also a JS version of this, but this version delegates to the native libraries for increased speed and security.

See the AeroGear.Crypto API docs for more info.

Geofencing Plugin


There is a global variable named geofencing exported by Cordova that one can use to register the device for receiving geofencing events.

See the Geofencing docs for more info.

OAuth2 Plugin


oauth2 varaible can be used to add providers like google and keycloak to requestAccess

See the OAuth2 docs for more info.