Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:3300_mobile_apps:monaca [2022/08/20 08:56] – removed - external edit (Unknown date) 127.0.0.1 | docs:3300_mobile_apps:monaca [2025/06/12 04:00] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | [< | ||
| + | ====== Building native mobile applications ====== | ||
| + | |||
| + | When you create your mobile applications they are accessed through a mobile browser such as Safari – just like non-mobile applications. Starting from // | ||
| + | |||
| + | There are several steps involved in creation of native mobile application for mobile phones or tablets: | ||
| + | |||
| + | - Create your browser-based mobile application as usual | ||
| + | - Use the “Build native mobile application” feature in // | ||
| + | - Create an account with a vendor that allows building native mobile applications from web applications written in HTML and Javascript. // | ||
| + | - Import the zip file created by // | ||
| + | - Create the binary file for the appropriate platform following Monaca guides | ||
| + | - Upload the binary file into the phone or tablet | ||
| + | You should create your native mobile application when your standard browser-based // | ||
| + | |||
| + | - Output folder where the zip file will be written | ||
| + | - Server URL and port. Your mobile application will be communicating with your server where // | ||
| + | - Web application folder name. Only if you have renamed the standard // | ||
| + | - You need to decide whether users of your mobile application will be logging into your system or not. If they are the login screen will be the first they will see when the application is launched. Otherwise, they will go directly into your mobile application as guest users. | ||
| + | - You then need to provide the application name, version and other details – these details will be registered for your native mobile application | ||
| + | When using Monaca you can import a project from a zip file and then open the project in the Monaca IDE. From the IDE you can perform a build for either iOS or Android or both. | ||
| + | |||
| + | ===== Building for iOS ===== | ||
| + | |||
| + | Before building a Monaca project for iOS: | ||
| + | |||
| + | - Select the Build/Build Environment Settings menu item and make sure that iOS 5.1.1 is selected | ||
| + | - Select the Configure/ | ||
| + | - Select the Configure/ | ||
| + | **Application Icons** | ||
| + | |||
| + | If you don’t provide your own application icons the default ones will be generated. To specify your own icons in Monaca select Configure/ | ||
| + | |||
| + | ===== Changing Project Files ===== | ||
| + | |||
| + | There are two files in your project that are very important – index.html and config.xml | ||
| + | |||
| + | The former defines the first HTML page that will be displayed when the application runs. The latter contains all configuration options of the build. You can modify these two files to customize the look and feel of the first page or to customize build configuration. | ||
| + | |||
| + | In Monaca you can change these files directly from the Monaca IDE. | ||
| + | |||
| + | For example, you can change the theme of the index.html file or add “forgotten password” or “Sign Up” functionality. | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | ===== Running mobile native applications ===== | ||
| + | Before running native applications you need to make some changes to AwareIM Tomcat files on the server: | ||
| + | |||
| + | 1. The following change will make sure that calls to the AwareIM Server from the native application are not interpreted as " | ||
| + | Modify the file AwareIM/ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | 2. The following change will disable using cookies by AwareIM as they cause security problems when running mobile native applications. | ||
| + | Modify the file AwareIM/ | ||
| + | <web-app xmlns=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | - Then add this: | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||