Skip to main content

appInfo

Description

Get information about the application

Parameters

N/A

Return Value

ParamData typeDescription
environmentstringApplication development environment, which is one of the values 'develop', 'staging', 'production'
platformstringZalopay application type, which is one of the values 'ZPA' (Zalopay App), 'ZPI' (Zalopay Integration in Zalo App)
osstringApplication development platform, which is one of the values 'IOS', 'ANDROID', 'WEB'
appVersionstringZalopay app version
userAgentstringThe webview's User Agent runs within the application
isIframebooleanIf 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"
}