my.getAppBaseInfo
Obtain basic information about the Mini Program app.
Supported SDK versions: 2.76.0 and the above versions
Supported types of mini programs: DSL
Sample code
See the following JavaScript sample code:
copy
const appBaseInfo = my.getAppBaseInfo();
console.log(appBaseInfo);Return value
Property | Data type | Description |
SDKVersion | String | Version of the basic library |
version | String | Mini Program SDK version number |
language | String | Language set for the app |
Error codes
The following table provides the possible error codes and messages in the API call:
Error code | Error message | Further action |
4 | permission denied | Check whether the app has permission to call this JSAPI and whether it is a DSL-type Mini Program. Note that this error code occurs only on iOS. |