Articles in this section
Category / Section

How to create Mobile Application for Syncfusion Essential JS Controls?

2 mins read

Running Syncfusion Essential JS in Android, iOS and Windows Phone Platforms.

Creating the Application with Syncfusion Essential JS Controls and deploy the App by using Apache Cordova framework.

What is Apache Cordova?

Apache Cordova is an open source Mobile development framework. Using this framework, we can create and deploy the application to Android, iOS and Windows devices.

How to Install Cordova?

By Using Command Line Tool to install the Apache Cordova. Before installing the Cordova, we need to install NodeJS. Read the installation guide and install the Apache Cordova.

Platform Specific Configuration

First we need to configure the system for the below platforms.

i)Android

ii)iOS

iii)Windows

Creating the Application using Cordova

Step1:

Create an empty Cordova project by using the below command.

$ cordova create hello com.example.hello HelloWorld

Step2:

Navigate the directory using the below command

$ cd hello

Step3:

Add the platform that you want to target your App.

Android

$ cordova platform add android –save

iOS

$ cordova platform add ios –save

Windows

$ cordova platform add windows –save

Create Syncfusion Essential JS Sample

Create any Syncfusion Essential JS control sample as mentioned in the link.

Add Syncfusion Sample to Cordova Project

Move the Syncfusion Essential JS Sample in to the location hello/www and delete the existing Cordova sample and scripts and CSS files.

Cordova project

The Sample file name should be index.html. If you want to change the sample file name to some other name means open hello/config.xml file and change the content src as like below.

By default, it takes index.html as the home page.

 

<content src="[filename].html" />

Build the Application

Run the following command to build the project.

Android

$ cordova build android

iOS

$ cordova build ios

Windows

$ cordova build windows

Deploy the App in devices:

Connect the device with the system and run the following command to deploy the App in devices.

Android

$ cordova run android

iOS

$ cordova run ios

Windows

$ cordova run windows 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied