.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

MobileApplication.AdditionalPhoneGapPlugins Property

Allows to register additional PhoneGap Plugins in your Mobile application.

Namespace: DevExpress.ExpressApp.Mobile

Assembly: DevExpress.ExpressApp.Mobile.v19.2.dll

Declaration

[Browsable(false)]
public List<string> AdditionalPhoneGapPlugins { get; }
<Browsable(False)>
Public ReadOnly Property AdditionalPhoneGapPlugins As List(Of String)

Property Value

Type Description
List<String>

A List<String> object with additional registered PhoneGap plugins.

Remarks

Use the AdditionalPhoneGapPlugins property to register a custom PhoneGap plugin. For this purpose, add a string with the <plugin> tag containing the plugin details (e.g., name, version, etc.). This tag will be added to the PhoneGap configuration file.

NOTE

Examples of tags required for adding a specific plugin in your Mobile application should be provided in the plugin documentation. In general, a tag should be formatted according to rules described in the "Including a plugin in your project" section of the Plugins article.

The appropriate place for adding custom PhoneGap plugins is the MobileApplication constructor.

The following example demonstrates how to add the phonegap-plugin-push plugin using the <plugin> tag provided in its documentation:

public partial class MySolutionMobileApplication : MobileApplication {
    //...
    public MySolutionMobileApplication() { 
        //...
        this.AdditionalPhoneGapPlugins.Add(@"<plugin name=""phonegap-plugin-push"" spec=""2.0.0"" />"); 
    }
}
NOTE

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

See Also