how to config plugin.xml to add android:name in application tag

374 Views Asked by At

default config for android manifest is:

<application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">

I want to add android:name="com.baidu.frontia.FrontiaApplication" tag

<application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.baidu.frontia.FrontiaApplication">

how to wrote plugin.xml for cordova plugin?

1

There are 1 best solutions below

3
On

just add this

<feature name="FrontiaApplication">
        <param name="android-package" value="com.baidu.frontia.FrontiaApplication" />
    </feature>