We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7402b commit b97436eCopy full SHA for b97436e
source/views/help/wifi-tools.js
@@ -16,15 +16,15 @@ export const getIpAddress = (): Promise<?string> =>
16
17
export const getPosition = (args: any = {}): Promise<Object> =>
18
new Promise((resolve, reject) => {
19
- if (Platform.OS === 'ios') {
+ if (Platform.OS === 'android') {
20
+ navigator.geolocation.getCurrentPosition(resolve, reject)
21
+ } else {
22
navigator.geolocation.getCurrentPosition(resolve, reject, {
23
...args,
24
enableHighAccuracy: true,
25
maximumAge: 1000 /* ms */,
26
timeout: 15000 /* ms */,
27
})
- } else {
- navigator.geolocation.getCurrentPosition(resolve, reject)
28
}
29
30
0 commit comments