Adobe recommends using the SPA Editor for projects that require single page application framework-based client-side rendering (e.g. React). Learn more.
At any given time, as a developer you can run your app on a device or within a emulator, provided you’ve configured your development environment.
In order to run the following examples you will need a system that runs OSx (Mac) with Xcode, or a Mac/Win/Linux system with the Android SDK installed.
For iOS: To develop for iPhones and iPads, you need Apple’s Xcode IDE.
For Android: To develop for iPhones and iPads, you need Google’s Android Stuido IDE.
Once you’ve successfully boostrapped your development environment, download the source from the AEM App Build Tile:
The development source contains the latest state of your app, while including un-staged changes. Use the Staging source for building release candidates for submitting to app store vendors.
If you never stage your app, selecting Staging will trigger the staging workflow (hint: this will show up as a staged app in the PhoneGap Enterprise Viewer App available in the AppStore and Google PlayStore).
PhoneGap CLI can create a platform project, compile the source, and deploy the app in a single command.
You can do all these steps separately, see PhoneGap CLI docs.
phonegap run android // -- or -- // phonegap run ios
If you have issues at this point, go back to basics to trouble-shoot -
This will verify that you’re PhoneGap CLI development environment is up and running correctly.
To enable the developer tools:
Open Safari’s preferences
Click Advanced in Preference window
You can connect Safari to either an iOS device or emulator.
phonegap run <platform> --device // -- or -- // phonegap run <platform> --emulator
You can set breakpoints anywhere in your source. When you interact with your emulator or device, the execution of your app will stop at those breakpoints. You can step trough the execution and inspect the values in variables.
To see the values of variables, in the current method, hover your mouse.
Once you have learnt about Developing Apps with PhoneGap CLI, see Accessing Device Features.