Applying the Cordova Plugin

You can build an app with the Cordova plugin applied.

Nexacro Studio

1

Install the Cordova plugin in Nexacro Studio.

2

Install the Cordova plugin and proceed with the packing process.

3

In the Project Explorer, select TypeDefinition > CordovaPlugins and execute Export from the Context menu.

Android - Android Studio

1

Copy the file folder exported from Nexacro Studio to the path of your app project.

2

Register the plugin in the plugin_config.xml file by referring to the plugin plugin.xml file and the documented guide.

For example, for cordova-plugin-statusbar, the plugin.xml file will be as follows:

For name and class, refer to the feature name and android-package items in the plugin.xml file.

...
<plugin name="StatusBar" class="org.apache.cordova.statusbar.StatusBar" onload="true"/>
<preference name="StatusBarBackgroundColor" value="#FFFF00" />
...

For preference, refer to the documentation provided by each plugin. The documentation provided by cordova-plugin-statusbar is as shown below.

https://github.com/apache/cordova-plugin-statusbar/tree/master#preferences

iOS/iPadOS - Xcode

1

Compress the file folder exported from Nexacro Studio, copy it to the device where Xcode is installed, and then unzip it.

2

Register the plugin in the plugin_config.xml file by referring to the plugin plugin.xml file and the documented guide.

For example, for cordova-plugin-statusbar, the plugin.xml file will be as follows:

For name and class, refer to the feature name and ios-package items in the plugin.xml file.

...
<plugin name="StatusBar" class="CDVStatusBar" onload="true"/>
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="StatusBarBackgroundColor" value="#FFFF00" />
...

For preference, refer to the documentation provided by each plugin. The documentation provided by cordova-plugin-statusbar is as shown below.

https://github.com/apache/cordova-plugin-statusbar/tree/master#preferences

3

In Xcode, select the project, select [Add Files to] from the Context menu, and add the files inside the file folder that has been exported from Nexaro Studio.

For example, cordova-plugin-statusbar will be as shown below.

CDVStatusBar.h

CDVStatusBar.m

4

Modify the import syntax path in the copied file by adding "nexacro/" in front of it.

#import <Cordova/CDVPlugin.h>
>
#import <nexacro/Cordova/CDVPlugin.h>