小程序后台持续定位功能
wx.onLocationChange //监听位置实时变化wx.stopLocationUpdate //关闭监听位置变化,前后台都不接收wx.startLocationUpdate //开启小程序进入前台接收位置消息wx.startLocationUpdataBackground //小程序进入前后台均接收消息做好持续定位功能条件:1、在app.json中加入,才能在后台调用定位功能"requiredBackgroundModes": [ "location"],.
原创
2021-11-30 11:00:06 ·
9588 阅读 ·
0 评论