deviceready - triggered when your app is fully initialized.There are 3 Cordova-specific events available via JavaScript or Puzzles which you can use to make your apps more mobile-friendly:
See the official Cordova guide on how to assign custom icon to your application. To run on a real device your app must be signed via XCode. To run your app on the real phone connected to your system exec: Then you're gonna need CocoaPods dependency manager:
Then install the Homebrew package manager: To be able to build and test your app in the iOS emulator or real devices, you're gonna need to install and configure additional software.įirst, you need to install XCode, get it from from the Mac App Store. Go to some directory where your Cordova app template located then add the iOS platform: To run your app on the real phone connected to your system run: To check if you satisfy the requirements for building, execute the following command in your apps directory: The last thing you will require is the Gradle build tool. See here on how to setup these variables. On Windows you'll also need to set the JAVA_HOME variable with the path to the Java directory. Once Android Studio is installed, you need to specify path to it in the ANDROID_SDK_ROOT environment variable. To be able to build and test your app in the Android emulator or real devices, you're gonna need to install and configure additional software.įirst, you need to install Android Studio, get it from here. Go to some directory where your Cordova app template located then add the Android platform:
Once your template is ready, download it and then unpack the zip archive to some directory. However, to simplify things up, we integrated a Cordova template builder right in the App Manager.īy using it you can create a Cordova app template right from your Verge3D app. You can create your mobile app manually or with Cordova command-line utility. On macOS/Linux: sudo npm install -g cordova Once npm installed, Cordova binaries can be installed with the following command. You can install it by following these instructions.įor Linux you better get npm via the package manager. To work with Cordova, you'll need the npm utility which is part of the Node.js runtime. Once you have your development system up and running, creating mobile versions of your Verge3D apps would be really easy! The good part, you don't need to be an Android or iOS developer to create apps for these platforms. However, to get published in Google Play you'll need $25 (one-time payment), while for App Store, you'll need $99 (paid annually).
Creating and running applications on your own devices is completely free. By following this guide you can build your first app really quick, however it may take hours or days, before you get your developer account approved and your app published in App Store / Google Play. If you don't, please seek the internet for beginner-level tutorials. You can develop Android apps on any computer running Windows, macOS, or Linux, while developing apps for Apple devices will require a decent Mac system.īasic Windows/macOS/Linux console (aka command prompt) skills. The tool is completely free, easy-to-use and allows for advanced customizations with JavaScript (if you need it).īefore you start working with Cordova, make sure you have the following:
Cordova is mostly used to create apps for Android and iOS platforms, however, it's also possible to develop Windows, macOS, and Linux applications.
Creating Mobile Applications with Apache CordovaĪpache Cordova is a tool which converts web applications to cross-platform mobile applications.