A mobile plugin module is a normal module that provides a set of client actions publicly available. You can call those actions to access the mobile native capabilities and features, like scanning a QR code or accessing the GPS to get the device’s location.
To use the plugin in your application you do the same as importing any other module:
- Get the plugin module in Forge or another source. Install it in the environment as you do it for any other application;
- In the mobile application’s module where you want to use the plugin, open the “Manage Dependencies…” window and add the plugin as a dependency;
- Use its client actions to call the native mobile capabilities using your application.
When using a plugin in your application you must include the plugin’s license in your app to respect the license agreements of that plugin. Usually, these license agreements are placed in the About page of the app that uses them.
Every time you add, remove or modify the use of a mobile plugin in an app, OutSystems will generate a new build that you must distribute to the users for them to install. Since then, the app will correctly and fully work with the plugin. The plugin must support the mobile platforms (iOS and Android) for which you want to create an app or the app generation will fail.