Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Location service doesn't stop after closing app #8683

@mpuchala

Description

@mpuchala

Platform: Android
Mapbox SDK version: 5.0.2

Steps to trigger behavior

  1. Open app with map (in my situation fragment with map)
  2. Request for tracking user location
  3. Go back from app

Expected behavior

Location service stops after user closes app

Actual behavior

Location service is working in background

Hey guys,

I was using API 4.1, now I'm switching to API >5.0 (5.0.2) and there is an issue with location service I mentioned. After user closes an app it's still requesting for his location. Maybe I haven't found a method which I have to use in new API to avoid it, but it's pretty easy to see this problem in your "Mapbox Dev Preview" (Menu -> User location -> Track user location -> Back button -> Back button). App is closed (in background), but location service works, only killing the app stops it. It's not possible to release an app with that issue (battery).

If it's known issue, or there is something I should now I would appreciate a suggestion how to resolve it.

Metadata

Metadata

Assignees

Labels

AndroidMapbox Maps SDK for Androidrelease blockerBlocks the next final release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions