Overview
Application Scenarios
With the help of FineMobile DataAnalyst app for OEM, you can manage versions according to your needs and decide whether to update.
Functions
With the function, when FineReport releases a new version of the app, admins can test it in advance, and then repackage and release the stable version that has been tested to ensure that the end users always use a stable version. Admins can also set up update checks when users launch the app and force them to upgrade.
Examples
Configuring Version Information Service
Create a new version.json file, and you can customize the name. The content is as follows:
Note:
1. The .json file needs to be encoded in UTF-8, otherwise the Android system will fail to parse it, resulting in no new version update reminders.
2. When putting it into the server, you need to delete the code comments, otherwise the app may fail to read the version information correctly.
[ { "platform": "ios",
"version": "2.0",
"date": "2018-01-15@20:00",
"update": "App download address",
"log":"XXXX",
"forceUpdate":"true" //Defaults to false, and no force to update when there are new versions;force to update to the new version when it is true
},
{ "platform": "android",
"version": "9.1.03",
"date": "2018-01-12@20:00",
For details, see the table below:
Note: Parameter names must be consistent with the descriptions below.
Parameter | Description |
platform | Platform, lowercase ios/android |
version | The latest version number. The version number format can be customized, usually xx.xx.xx. |
date | Update date |
update | App download address |
log | Update log |
forceUpdate | Whether to force an update during startup detection, true/false. Note: The app version library needs to be version 9.3.43 or higher. |
Upload version.json file to the server. You can access it through the URL, such as http://xxxx/version.json.
Note: Ensure that external network access is available.
Modifying OEM Settings
Note: For details about common customization packaging steps, see App OEM. This article only introduces the version update steps.
Open the FineReport Market, go to User Information > App packaging, and click Create New App or package an existing app.
Modify the Version Update in the settings and fill in the link to obtain version information in the first step http://xxxx/version.json.
Demonstration
Regenerate the installation package and download it. In the About interface, click Version Update to obtain the latest version information through the configured link and compare it with the current version. If the obtained version number is higher, a prompt to update will pop up.
When the forceUpdate parameter is set to true, version detection will be performed when the app is launched, and a prompt to update will pop up when a new version is found.
If the forceUpdate parameter value is false, or there is no forceUpdate parameter, only a new version prompt will pop up in the About interface.