# uni.getAppBaseInfo()

Get the basic information of WeChat APP

App H5 微信小程序 支付宝小程序 抖音小程序 快手小程序 QQ小程序 百度小程序 京东小程序 钉钉小程序 飞书小程序
(3.4.13+) (3.4.13+) (2.20.1+) x x x x x x x x

Return parameter description

Parameter Name Type Description Platform Difference Description
appId string The application appid in the manifest.json, that is, the DCloud appid.
appName string App name in manifest.json
appVersion string The app version name in manifest.json.
appVersionCode string The app version name in manifest.json.
appLanguage string Language for application settings en, zh-Hans, zh-Hant, fr, es App, H5
appWgtVersion string Version name of the app resource (wgt). App 3.5.5+
hostLanguage string Mini Program Host Language App only supports UNIMPSDK, H5 does not support
hostVersion string App, applet host version. For example: WeChat version number App only supports UNIMPSDK, H5 does not support
hostName string mini program host name App is only supported by UNIMPSDK, H5 is not supported
hostPackageName string mini program host package name only supported by UNIMPSDK
hostSDKVersion string uni applet SDK version, applet client base library version App only supports UNIMPSDK, H5 does not support
hostTheme string The current theme of the system, the value is light or dark. The WeChat applet can only be obtained when "darkmode" is globally configured: true, otherwise it is undefined (mini games are not supported) App only supports UNIMPSDK, H5 does not support
hostFontSizeSetting string User font size setting. The setting in "I-Settings-General-Font Size" shall prevail, unit: px Only applet supports

applet special return parameters

Parameter Name Type Description Platform Difference Description
SDKVersion string Client base library version WeChat applet only
enableDebug boolean Whether debugging is turned on. You can enable debugging through the upper right menu or wx.setEnableDebug WeChat applet only
host Object The current host environment where the applet is running Only WeChat applet
theme string The current theme of the system, the value is light or dark, it can only be obtained when the global configuration "darkmode": true, otherwise it is undefined (mini games are not supported) Only WeChat applet

Deprecated return parameter, reserved for backward compatibility only

Parameter Name Type Description Platform Difference Description
language string The language set by the application H5 does not support
version string Engine version number, WeChat version number