WaveMaker Docs

WaveMaker Docs

  • Get started
  • Widgets
  • Mobile
  • How-to
  • Enterprise
  • Releases
  • Blog
  • Sign-in

›Mobile Installer

Mobile Development

  • React Native or Cordova

React Native

  • Welcome
  • Features
  • Supported Widgets
  • Supported Variables
  • Test Run Preview
  • Debug Web Preview
  • Inspection Framework
  • Mobile Preview
  • Styles
  • Theme
  • Export as Zip
  • Build Installers
  • Debug APK
  • Debug IPA

Cordova

  • Building Hybrid Mobile Apps
  • Native Device Support
  • First Mobile App
  • Mobile Design

    • Mobile Page Design
    • Gesture Support
    • Mobile Tabbar
    • Mobile Navbar

    Mobile Installer

    • Test Run (Preview)
    • Debugging Mobile Apps
    • Test via Live Sync
    • Testing Hybrid Mobile Apps using WaveLens
    • Mobile Build - Android
    • Generating iOS and Android Distribution Certificates
    • Export Cordova zip
    • Mobile Build - Manual
    • Mobile Build - AppChef

    Mobile Integrations

    • Mobile Integrations - Amazon Mobile Analytics
    • Mobile Integrations - Amazon SNS
    • Using Push Notifications in Mobile Device
    • Invoking Web App APIs in Mobile Apps

    Offline Features

    • Offline Data Support
    • Implementation
    • Switching between Offline and Online Mode
Edit

Export Cordova zip


A Cordova zip in general will be used to create a platform specific installer. WaveMaker supports cordova feature to generate mobile native installers for Android & iOS devices.

The Cordova zip is packed with all the UI specific files and images which will be needed to display the User Interface. These UI files in the cordova zip will be pointing to a backend server which contains the core business logic. This means, that the installers generated using Cordova have little to no business logic in it, and the whole business logic is in the backend server.

WaveMaker Studio allows you to export a cordova zip from any mobile project.

Following are the two approaches which can be followed to create a Cordova zip.

  1. Using WaveMaker Studio
  2. Using Maven Command

Export Cordova using WaveMaker Studio

  1. In the top right menu bar of WaveMaker Studio, go to Export and click Project as Cordova ZIP.

  1. A dialog with all the Cordova configuration will open.

Configuration NameDescription
Application NameThe name of the application
Server PathThe backend server url. Dev is used to prepopulate the application preview url. Custom is used to add the url of the application which is hosted somewhere else
Config ProfileThe build profile to use
  1. Make necessary changes to the configurations and click on build button. This will start a job as shown in the below image.

  1. When the job gets completed, you can download the Cordova zip by clicking on the download icon as shown in the below image.

Export Cordova using Maven Command

tip

This an alternative of the above approach. This is useful if you are working outside WaveMaker Studio.

  1. Get the WaveMaker project into your machine, if you don't have it already by following any of the below methods.

    1. Export the WaveMaker project zip and extract the zip.
    2. You can also execute git clone <repo_url> command to get the project from a git repository which is commonly used across the development team.
  2. Install Prerequisites to support maven build.

DescriptionVersion
Java1.8
Node10.15.0
Maven3.6.3
npm6.4.1
Ant1.10.7
  1. Execute the below command.

    mvn clean package -Dmobile.serverUrl="<url>"

    Here, <url> is the application server url. The mobile installer will be generated from this Cordova will make backend calls to the url specified. (Refer the below image)

    Example :

    maven command to generate cordova

  2. After executing the above command, the Cordova zip can be found at

    <ProjectFolder>/target/<ProjectName>-cordova.zip.

    Example :

    maven command cordova out file

Last updated on 12/24/2020 by Priyanka Patnala
← Generating iOS and Android Distribution CertificatesNext →
  • Export Cordova using WaveMaker Studio
  • Export Cordova using Maven Command
WaveMaker
  • PRICING
  • PARTNERS
  • CUSTOMERS
  • ABOUT US
  • CONTACT US
Terms of Use | Copyright © 2013-2023 WaveMaker, Inc. All rights reserved.