iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

Nexus 7 IITC Mobile kills GPS #112

Closed Teleken closed 11 years ago

Teleken commented 11 years ago

Nexus 7 stock but rooted.

If I have Ingress open and I switch to IITC Mobile it will crash the GPS driver. The GPS icon in the status bar goes away, and Ingress stops updating position. If I use a GPS Status app it shows the satellites frozen with no updates. Icon does not reappear.

Only way to solve this is to turn off GPS, turn it back on, and wait a few minutes for the system to realize that the driver isn't responding and then suddenly the icon will reappear and takes a little bit to get a lock again.

Makes it very difficult to use while playing.

If I close Ingress (which then closes the GPS driver) and run IITC Mobile, then close IITC mobile and rerun ingress the problem does not occur.

It would appear to be some issue with attempting to lock into the GPS driver while it is already open?

Note that I do not use IITC's auto-location function, so I don't know why it's doing this.

Please keep up all the fantastic work though!

jonatkins commented 11 years ago

Odd. I use it on my Nexus 7 (stock and unrooted) and don't get this issue. How are you switching between Ingress and IITCM? Using the standard task switcher causes Ingress to release the GPS before I have a chance to open IITCM.

Does having another background task keeping GPS active (e.g. navigation, gps loggers or similar) fix the issue?

Teleken commented 11 years ago

I appreciate the feedback and will do what I can to help.

So far it's only happened once in the field (the first time I used it) and I haven't used it again since.

Trying it at home I can reproduce the problem by using either the task switcher or home methods. However it doesn't seem to be consistent. Sometimes when returning into ingress the GPS icon does not appear anymore, other times it does. For what it's worth the problem also occurs when accessing another application that uses the GPS. I can switch to things like G+ messenger, mail, and other apps that do not use the GPS and back again and Ingress always seems to pick it up. But switching to another app that uses GPS like Maps or GPS Status, then back again and it's a 50/50 chance that it won't load the GPS again.

I apologize for jumping to conclusions, but oddly enough the old version didn't seem to have this problem which is why I figured it was this update. However maybe I was just lucky before and the problem relates to any other app accessing the GPS causing Ingress to lock it up somehow. If I figure anything else out I will let you know.

jonatkins commented 11 years ago

It sounds like an issue either with your device or Ingress - closing issue.

Reopen if you identify an IITCM issue.