The requested page is not available for the requested platform. You are viewing the content for Default platform.
A newer version of this page is available. Switch to the current version.

How to: Use a Custom Plugin in a Mobile Application

  • 2 min to read

Cordova provides you with a variety of plugins that can be used to extend your XAF Mobile application's functionality. This topic describes how to add them to your application, and contains examples of using some popular Cordova plugins.

Plugins Registration

Each third-party plugin needs to be registered in the Mobile application's PhoneGap configuration file. To do this, add a string with the plugin tag to the MobileApplication.AdditionalPhoneGapPlugins collection in the MobileApplication constructor.

For the advanced PhoneGap configuration file customization, use the MobileApplication.CustomizePhoneGapConfig event.

Examples

This section contains several examples demonstrating how to integrate some popular Cordova plugins.