问题标签 [getlocation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
11 问题
0
投票
0
回答
38
浏览
android - 如何在中国手机上获取当前位置?
我使用 Goole 播放服务位置 API 和 fusedLocationClient.requestLocationUpdates(locationRequest,locationCallback,looper); 获取当前位置。
但有时会在oppo、小米等中国手机上获得最后一个位置。(这些手机上有google play)
有没有办法解决这个问题?
这是我的代码:
许可:
主要代码:(监听器是我创建的接口)