App doesn't access GPS location directly


Question

There's a strange situation with Citymapper, where it doesn't access GPS location directly, but it does if a different app is accessing location at the same time. This hasn't always been the case, but I'm not sure exactly when it started (so, can't say if it's because of a certain update etc.).



Problem details:




  • I'm using Citymapper 6.23 on LineageOS 14.1.

  • The Location permission is for Citymapper is turned on

  • "Location mode" is set to "Device only" (i.e., GPS only), although I've tried turning "High accuracy" on to test, and it doesn't fix the problem.

  • I have Privacy Guard enabled on Citymapper, but access to location is allowed, and as before, disabling Privacy Guard for Citymapper doesn't fix the problem.



Citymapper "thinks" it's accessing location, but it's not: I say this because when I disable the location marker for the device, Citymapper complains that "Your location is disabled". If location is on, Citymapper doesn't complain (so, it thinks it's working), but I know it's not accessing the location for three reasons:




  1. the location Citymapper shows is incorrect (it shows the last "known" location -- see below for details)

  2. the location marker doesn't appear at the top of the screen as it would when an app is using geolocation

  3. in the system settings > Location, "Recent location requests" are shown, but Citymapper is not on that list.



Further to this, Privacy Guard reports that "Fine location" is being accessed by Citymapper every time I use the app, but it says that GPS was last accessed on 26 December 2017 (Privacy Guard controls separately access to "GPS", "Coarse location" and "Fine location").



Indirect access:



The weirdest part is that when I open a different application that uses geolocation (in this case, MapFactor Navigator) and the location marker does show up at the top of the screen, the correct location does show up in Citymapper as well (this is my current workaround, and this is how Citymapper gets the last known location I mentioned above).



What could be causing this, and how could I go about fixing it? As I've mentioned, it used to work but started having this problem a while back (perhaps around the 26th of December, since that was the last GPS access). I haven't seen this with other apps, but then again, I don't have a lot of apps with location access.



System details:




  • Device: Samsung Galaxy S5 Duos (SM-G900FD)

  • OS: LineageOS 14.1

  • Android version: 7.1.2

  • The phone is rooted with SuperSU.



Note: There's no "Citymapper" tag (and I'm a newbie), so I used the generic "applications" tag. Maybe a senior user can fix this.


Answer

Android Engineer at Citymapper here!



The issue you're describing sounds quite similar to one we fixed recently.
So I would recommend updating to the latest version of the app.
The current version in the Play Store as of writing is 7.1.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes