DEV Community

HarmonyOS
HarmonyOS

Posted on

How can a mobile app market with a low API version search for apps with a high API version?

Read the original article:How can a mobile app market with a low API version search for apps with a high API version?

Problem description

The application is compiled and packaged with API 15, and the mobile phone system is API 12. Can the application be searched in the mobile app market? If it cannot be searched, it will give people the illusion that the application is not available, which is easy to cause public opinion. How to solve this problem?

Solution

Whether a mobile phone with a low API version can search for an application with a high API version in the app market is affected by the following factors:

  1. Affected by compatibleSdkVersion

The compatibleSdkVersion field in the engineering-level build-profile.json5 file identifies the minimum compatible SDK version required for the application/meta-service to run. The application/meta-service cannot be installed on devices with a version lower than this.

For example, if compatibleSdkVersion is set to 11, the app market will distribute this application on API12, and mobile phones with API12 can search for the application; if compatibleSdkVersion is set to 13, the app market will not distribute it on API12, and mobile phones with API12 cannot search for the application.

  1. Affected by the actual API version used when the application is compiled and packaged The actual API version used when the application is compiled and packaged is determined by the compileSdkVersion

field in the build-profile.json5 file or the default SDK version of DevEco Studio . The current ability of the app market is that when a mobile phone with a low system API version downloads an application compiled and packaged with a high version of the API, there will be a pop-up window prompt, such as "This version is incompatible with the system" and "It is recommended that you go to software update to check and update the system version."

Written by Merve Yonetci

Top comments (0)