Google maps shows wrong location on old Android versions -


my app has tab opens google maps , shows markers of sightseeings around user. when open tab should show user's current location. show on android 6.0.1 correctly, when try on 4.2.2 or 4.4.2 example shows users location around 30km (18miles) longitude difference north (the latitude fine). of phones have location , wi-fi turned on , connected same wi-fi network. in mapready have set setmylocationenabled true, should working, it's not. suggestions what's causing this?

@override public void onmapready(googlemap googlemap) {      mmap = googlemap;     mmap.setmaptype(googlemap.map_type_normal);      mmap.setmylocationenabled(true); 

i don't think os version of phone or code issue. have used samsung duos , other phones using 4.4.2 , lower , haven't had issues location.

when in high accuracy mode phones can fetch data through wifi or mobile networks not accurate.

there have been instances location shown incorrectly when wifi router has been moved.

example 1

example 2

i have faced issue when router @ home stopped working , borrowed backup router office. google maps showed in office when @ home!

to combat can try turning off location retrieval wifi , mobile networks changing location mode on phones high accuracy device only. force device fetch locations gps satellites require phones near window or someplace open sky.

test app on device , let me know if still face same issue.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -