Skip to content

gordol/cordova-plugin-gotenna

 
 

Repository files navigation

Cordova goTenna Plugin

This plugin exposes the goTenna SDK to your cordova application.

gotenna

Disclaimer: This plugin is not created by nor affiliated with goTenna Inc.

Getting Started

Installation

Because this plugin is still a work in progress it is not currently published on the cordova registry. In the meantime it can be installed with

cordova plugin add https://github.com/dansteren/cordova-plugin-gotenna.git

Use

The goTenna SDK is attached directly to window. All methods are organized according to the package structure of the original sdk. Examples:

window.goTenna.setApplicationToken('your-token-here');
const result = await window.goTenna.bluetooth.BluetoothAdapterManager.getBluetoothStatus();

Remember to initialize your application with your unique application token before you do anything else.

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

Disclaimers

This project is a work in progress. As such the API may change. If you have any comments or feedback feel free to open an issue or contact me directly.

About

Work in Progress: goTenna plugin for Cordova

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 65.6%
  • TypeScript 29.4%
  • JavaScript 5.0%