Getting Started
Last updated
Last updated
Cordova 8.0.0
Cordova Android 7.0.0
The minimum android sdk level supported by Cordova Plugin Gotenna is 18. Add the "android-minSdkVersion" preference to the config.xml file a the root of your cordova project:
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
The goTenna SDK is attached directly to window
. and is accessible without any further work on your part. It is only available, however, after Cordova is available. This means you will need to wait for Cordova's event to fire before gotenna is available.
Despite it being built in typescript, the plugin does not currently ship with typescript definitions. This is in part due to it's pre-stable status and changing API. In the future the plugin will ship as an ES6 module allowing you to import methods from the gotenna package directly. For now, you can use the following definition file, which is still a work in progress:
This definition file can be placed anywhere in your project, though I would recommend placing it right next to index.ts.