setApplicationToken

Sets the SDK application token for use in the goTenna SDK.

circle-info

NOTE: This method must be called with a valid token before any other SDK methods are called.

Arguments

token: string Your unique gotenna application token.

circle-info

If you need an application token head on over to gotenna's websitearrow-up-right.

Returns

undefined

circle-info

If the token is invalid the SDK will not throw an error. It will however printgoTenna: Invalid goTenna App Token as an error to the console.

Example

document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
  // Plugins are now available.
  goTenna.setApplicationToken('your-token-here');
}

Last updated