Develop an Oracle JET Hybrid Application for Oracle Mobile Hub
You can create hybrid mobile applications using Oracle JET and integrate them with Oracle PaaS solutions like Oracle Mobile Hub.
Before You Begin
- Make sure you have configured your Hybrid Mobile Development Environment.
- Make sure you have access to an Oracle Mobile Hub instance.
About the Architecture of Oracle JET Hybrid Mobile Applications
Apache Cordova is an open-source mobile development framework that supports standard web technologies like HTML5, CSS3 and JavaScript for cross-platform development. Oracle JET hybrid mobile applications execute within Cordova wrappers targeted to different mobile platforms like iOS, Android and Windows.
The following image depicts the typical architecture of a Cordova hybrid application:

Description of the illustration cordova_arch.png
In a Cordova Architecture, the application view (typically composed of HTML, JS and CSS files) is displayed on a native Operating System wrapper that internally works as a web browser. The Cordova API also provides plugins to communicate with mobile operating systems through Core OS APIs, these APIs allow you to access mobile operating system components like contacts, address list, localization, notifications, and more.
Configure Your Oracle JET Hybrid Mobile Application
Before writing the code for your hybrid mobile application, you must configure your hybrid mobile application. For that purpose, use the ojet create
command to scaffold the folder structure and the overall template for your application.
Integrate Your Oracle JET Hybrid Mobile Application with Oracle Mobile Hub
You can integrate your Oracle JET hybrid application with a backend mobile service like Oracle Mobile Hub to fetch REST data from federated Oracle SaaS applications like Oracle Fusion Cloud Sales Automation.
Build and Test Your Oracle JET Hybrid Mobile Application
Before executing your Oracle JET hybrid mobile application for the first time, you need to run a build targeted for a mobile platform.
Run the ojet build os
command to automate the build and testing process. Execute the following command in your Node.js command prompt:
ojet build [android|ios|windows]
[--build-config=path/buildConfig.json --destination=device|emulator
--theme=themename[:android|ios|web|windows] --themes=theme1,theme2,...
--sass
--platform-options="string"]
Where [android|ios|windows]
is the platform on which you want to test your application. For example, if you’re testing on an Android emulator, the command is:
ojet build android
Once the build is complete, run the application by using the ojet serve os
command:
ojet serve [android|ios|windows]
[--build-config=path/buildConfig.json
--server-port=server-port-number --livereload-port=live-reload-port-number
--destination=emulator[:emulator-name]|browser[:browser-name]|device[:device-name]|server-only
--livereload --build
--theme=theme_name[:android|ios|windows|web]] --themes=theme1,theme2,...
--sass
--platform-options="string"]
[android|ios|windows]
is the platform on which you want to test your application. For example, if you’re testing on an Android emulator, the command is:ojet serve android