feat: add background gps tracking support

This commit is contained in:
2026-03-20 19:03:57 +08:00
parent 1ecb4809df
commit a4c426df8b
6 changed files with 353 additions and 5 deletions

View File

@@ -9,6 +9,16 @@
"navigationBarTitleText": "CMR Mini",
"navigationBarBackgroundColor": "#ffffff"
},
"permission": {
"scope.userLocation": {
"desc": "用于获取当前位置并为后台持续定位授权"
},
"scope.userLocationBackground": {
"desc": "用于后台持续获取当前位置并在地图上显示GPS点"
}
},
"requiredBackgroundModes": ["location"],
"requiredPrivateInfos": ["startLocationUpdateBackground", "onLocationChange"],
"style": "v2",
"componentFramework": "glass-easel",
"lazyCodeLoading": "requiredComponents"