appInfo
Description
Get information about the application
Parameters
N/A
Return Value
Param | Data type | Description |
---|---|---|
environment | string | Application development environment, which is one of the values 'develop' , 'staging' , 'production' |
platform | string | Zalopay application type, which is one of the values 'ZPA' (Zalopay App), 'ZPI' (Zalopay Integration in Zalo App) |
os | string | Application development platform, which is one of the values 'IOS' , 'ANDROID' , 'WEB' |
appVersion | string | Zalopay app version |
userAgent | string | The webview's User Agent runs within the application |
isIframe | boolean | If the value is true , this MiniApp was developed by a Partner |
Error Code
N/A
Sample Code and Sample Return Data
Sample Request:
window.zlpSdk.Device
.appInfo()
.then((response) => console.log(response))
.catch((error) => console.error(error.errorCode));
Sample Response:
{
data: {
environment: "develop",
platform: "ZPA",
appVersion: "8.23.0",
os: "IOS",
userAgent: ,
isIframe: false
},
status: "success"
}