Skip to content

Background geolocation has not worked since Android version 13 #924

@DiFo89

Description

@DiFo89

On versions 13 and 14, there is no notification about background geolocation. Everything works well on previous versions.

I also tested it after "flutter clean" and "flutter upgrade".

The following plugins are used in the project:
cupertino_icons: ^1.0.2
go_router: ^12.0.0
shared_preferences: ^2.0.15
google_fonts: ^4.0.4
flutter_svg: ^2.0.7
accordion: ^2.6.0
signature: ^5.1.0
provider: ^6.0.5
http: ^1.1.0
intl: ^0.18.1
mime: ^1.0.4
http_parser: ^4.0.2
path_provider: ^2.1.1
mask_text_input_formatter: ^2.5.0
location: ^5.0.3

The project has the following permissions:

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>

kotlin_version: 1.9.21

dependencies:
classpath 'com.android.tools.build:gradle:7.3.0'

flutter doctor:
[√] Flutter (Channel stable, 3.13.6, on Microsoft Windows [Version 10.0.22621.3007], locale ru-RU)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.5)
[√] Android Studio (version 2022.2)
[√] VS Code (version unknown)
X Unable to determine VS Code version.
[√] Connected device (5 available)
[√] Network resources

It does not produce any errors during testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions