# getCircularRegionLocationAuthStatus

获取app是否(始终)有后台定位权限

# 调用方式

getCircularRegionLocationAuthStatus(params = {})
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

参数 类型 必填 默认值 说明
params Object N {} 定位模块查询参数
params.identifier String N — 旧围栏文档使用的场景标识;未指定时查询当前 App 权限

# 接口调用示例

this.$bridge.getCircularRegionLocationAuthStatus({})
  .then(res => {
    console.log(res)
  })
  .catch(error => {
    console.error(error)
  })
1
2
3
4
5
6
7

# 返回参数

Prop Type Required Default Description
code Number Y - -1失败 0成功4成功 1 2 3 5失败

# 注意事项

返回 Promise。旧文档的权限 code 含平台差异,JS 层不转换权限状态含义;不要把这些 code 当成统一的业务成功码。