Overview

Apache Cordova plugins provide JavaScript interfaces that can be called to use native device capabilities to enhance the features and functionality of a mobile application. To enable Appeon mobile apps to take advantage of Cordova plugins, PowerServer Mobile has packaged the common Cordova plugins and provided two solutions for a PowerBuilder developer to call the plugins:

  • Solution 1: Call the PowerScript interfaces that Appeon Cordova PBL provides. The Appeon Cordova PBL provides interfaces that can automatically execute the corresponding JavaScript methods and return the results from JavaScript, therefore, the developer is able to call the Cordova plugins as easily as call a PowerBuilder object, without needing to know the JavaScript language.

    For detailed instructions, refer to Appeon Cordova PBL.

    However, the Appeon Cordova PBL only encapsulates the following Cordova plugins as PowerBuilder objects: Bluetooth, Bluetooth Low Energy, Contacts, Fingerprint authentication, Geolocation, Device orientation, & Vibration.

  • Solution 2: Call the JavaScript interfaces that Cordova plugins provide. This requires the developer to at least be able to read the JavaScript code in the Cordova plugins. This solution gives the developer most flexibility to use any Cordova plugins that are included in the Appeon product (view list). If you found a Cordova plugin not included in the Appeon product, you can contact Appeon Support (support@appeon.com) to make plans for including it.

    For detailed instructions, refer to Cordova plugins.

If you found any issue with the Cordova plugins, please first search the Cordova plugin issue list to see if the issue already exists; if the issue does not exist, you can submit the issue after logged in.