Upgrade IOS applications and ios applications
IOS app upgrade process Introduction: When iosmobile app upgrade, open the Server HTML file (ucab.html file in this document)-click online installation-open the plist file (ucab in this article. plist file)-the address of the application upgrade package stored in the plist file. (This article is: http: // 192.168.1.126: 8088/netcrm/ucab. ipa). This address is the Application URL value filled in during packaging. Access the upgrade package through the upgrade package address and prompt to install the upgrade. Step-by-step introduction: 1. Preparations 1. The enterprise-level certificate mobileprovision file for packaging will not be used here. 2. server-side html files required for application upgrade. Create an HTML file (ucab.html in this document) for the server to which the application is updated. The Code is as follows: copy the code.
Core code:
Copy the code http: // 192.168.1.126: 8088/netcrm/ucab. plist to the Web access path of the ucab. plist file generated in the package. II. Application Package V1.0: 1. Package after compilation <ignore_js_op> 2. Click distribute <ignore_js_op> 3. Select Save for Enterprise or Ad-Hoc Deployment, click Next <ignore_js_op> 4. Select the enterprise certificate for packaging, click Next <ignore_js_op> 5. Name the packaging application and save the path. Select Save for Enterprise Distribution. Enter the Application URL value. The Application URL value is the web access path of the packaged Application ipa file. Enter the Title value. The Title value is the application name. Note that the name of the saved ipa file must be consistent with the name of the ipa file pointed to by the web access path in the Application URL value each time an upgrade package is created. Otherwise, the update package cannot be found during the upgrade. <Ignore_js_op> currently, we have the following files: (1)、ucab.ipa(2)、ucab.plist(3)、ucab.html). Put the three files in the same directory of the server-side Web application (this article is in the root directory of the server ), if you need to put it in different directories, modify the corresponding file access path. Enter the access path of ucab.html in the mobile phone browser. This article is: http: // 192.168.1.126: 8088/netcrm/ucab.html to access and install the application. <Ignore_js_op> the V1.1 packaging steps are the same as the V1.0 packaging steps. The following changes can be made to the differences between the V1.1 and V1.0 versions: <ignore_js_op> after V1.1 is packaged, you can test the upgrade function.
The code for obtaining the local application version on the iphone is as follows: copy the code
Compare the local version number with the version number saved on the server obtained by the interface. If you need to upgrade, run the Upgrade Code on the iphone.
The upgrade code for the iphone is as follows:
Copy code
Run the code to open the http: // 192.168.1.126: 8088/ucab.html address in the mobile browser and install the application. Then, you can replace the old application with the new application, upgrade the application. It is consistent with the access path of ucab.html in the mobile browser and the installation of the application.