getAppInfo
Requires:
BizKit≥3.0.0@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
getAppInfo(params: )Minimum SDK versions
- iOS
ThingSmartBizKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-bizkit - ≥ 5.2.0
Description
Get the current app’s business information
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | BizKit Since | Minimum SDK versions |
|---|---|---|---|---|
serverTimestamp | number | serverTimestamp server-side timestamp | v3.1.2 | — |
appVersion | string | appVersion app version | v3.1.2 | — |
language | string | language app language pack | v3.1.2 | — |
countryCode | string | Country code, returns the country/region telephone dialing code string Example return: countryCode: "86" (Mainland China) | v3.1.2 | — |
regionCode | string | Regional service code, derived from the current network region or user domain configuration Corresponds to the service field in the RN API Example return: regionCode: "AY" (China region) | v3.1.2 | — |
appName | string | appName app name | v3.1.2 | — |
appIcon | string | appIcon app icon | v3.1.2 | — |
appEnv | number | app environment 0: dev 1: staging 2: production | v3.1.2 | — |
appBundleId | string | app package name | v3.1.2 | — |
appScheme | string | app scheme | v3.1.2 | — |
appId | string | app ID | v3.2.2 | — |
clientId | string | app clientId | v4.2.0 |
|
accessibilityMode | boolean | Whether Accessibility mode is enabled | v4.27.1 |
|
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None