Cordova Plug-ins Support
deviceready event before accessing plug-in API. All plug-ins will be ready when the applications main module is loaded.
While using the Tabris.js Developer App, your application can directly access the following pre-packaged plug-ins:
- Device Motion
- Network Information
- Google Analytics
- Google Play Services
These plug-ins have been tested with Tabris.js and a demo can be found among the Tabris.js examples.
Please note, these default plug-ins are only part of the developer app published through the app stores, they are not automatically included when you are building your own app.
Other Cordova plug-ins
Since Tabris.js uses a native UI and no HTML, most other plug-ins will work out of the box but not all. Plug-ins that manipulate the DOM will not work.
To use Cordova plug-ins not part of the Tabris.js Developer App you need to add them during the build process and install the resulting app on your device. You can still side-load code if you build the app in debug mode. To do so use the
--debug switch with the
tabris build command or the “Debug” setting in the build service’ “Settings” tab. This enables the developer console. (Assuming
EnableDeveloperConsole is set to
$IS_DEBUG in your
config.xml.) The resulting app will then start with the source code from the git commit the built is based on, but the console allows you to load code via the CLI