想开发一个拖车救援系统,拖车在救援过程中,师傅可能会关闭小程序,这个时候,怎么实时传输拖车位置信息到后台,通过后台计算模块,计算出与被救援车辆的实时距离、预计到达时间?
问题在:拖车在救援过程中,师傅可能会关闭小程序,这个时候,怎么实时传输拖车位置信息到后台?
小程序进入后台后,还可以实时传递车辆(手机)位置?After the applet enters the background, can it still transmit the location of the vehicle (mobile phone) in real time?
小程序进入后台后,还可以实时传递车辆(手机)位置?想开发一个拖车救援系统,拖车在救援过程中,师傅可能会关闭小程序,这个时候,怎么实时传输拖车位置信息到后台,通过后台计算模块,计算出与被救援车辆的实时距离、预计到达时间?
问题在:拖车在救援过程中,师傅可能会关闭小程序,这个时候,怎么实时传输拖车位置信息到后台?
In order to develop a trailer rescue system, the master may close the small program during the rescue process of the trailer. At this time, how to transmit the trailer position information to the background in real time, and calculate the real-time distance and estimated arrival time with the rescued vehicle through the background calculation module? The problem is: during the rescue process of the trailer, the master may close the small program. At this time, how to transmit the trailer location information to the background in real time?
回答:
https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html
同问类似情况
小程序进入后台运营多久,会被微信关闭?