Lack of GPS location updates on Galaxy S3

I am developing a GPS tracker and it works like a charm. But a couple of weeks ago, a client of mine (a caterpillar company) bought a Samsung Galaxy S3 for its drivers. And since then we have had really strange behavior in my application.

The application receives location updates from the GPS receiver, but after several hours of operation, it does not receive any location updates.

I registered the application for onGpsStatusChanged() too, and onGpsStatusChanged() was called during this time (I see that the GPS receiver has 10-17 satellites!), But the onLocationChanged() method was not called! After restarting the service (= re-registering LocationListener ), it works again. This is really weird. After a few hours of operation, the GPS receiver does not seem to be in the mood for calling onLocationChanged() :)

Any idea what could be wrong?

@matekm: The log is as follows:

onLocationChanged () <- new location

onGpsStatusChanged () (GPS started / stopped / GPS_EVENT_SATELLITE_STATUS, etc.)

...

onLocationChanged () <- new location

onGpsStatusChanged () (GPS started / stopped / GPS_EVENT_SATELLITE_STATUS, etc.)

...

onLocationChanged ()

<<<<<- from here, no location is updated anymore and no other GPS event status other than GPS_EVENT_SATELLITE_STATUS!

onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 15 onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 15 onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 16 onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 15 onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 17 onGpsStatusChanged () GPS_EVENT_SATELLITE_STATUS numOfSatellites = 15 ...

+4
source share
1 answer

I read somewhere that S3 supports GLONASS , and it works the same way as the GPS system, which usually works on other phones, like S2, although I believe that GLONASS is backup or works together. Perhaps it sends the wrong coordinates or coordinates in a form that your application cannot read. But if you say that it works for 4 hours on S3, and then fails. This does not happen on other phones, only on S3. Maybe it will be convenient for you to narrow it down to see if other phones have the same problem or only S3?

0
source

Source: https://habr.com/ru/post/1434567/


All Articles