rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
289 stars 330 forks source link

Example app is not running ... #282

Closed nasirdev74 closed 3 years ago

nasirdev74 commented 3 years ago

I'm trying to implement the example app of this repository. I added this dependency: background_locator: ^1.6.6 location_permissions: ^3.0.0+1

& copied all file from background_locator/example/lib/ I tried to run the main function. The app is running on the emulator. & I got this on my console:

I/flutter ( 4218): Initializing... I/flutter ( 4218): Initialization done I/flutter ( 4218): Running false

It says the app is initialized. but the service is not running. Can anyone help me please. I followed the setup steps from the guideline. /rekab-app/background_locator/wiki/Setup

ClaudeChey commented 3 years ago

change the location_permission to permission_handler

bardram commented 3 years ago

I also changed to using the permission_handler plugin (the location_handler plugin is discontinued).

However, if you're on Android >=11, I had to set the location permissions manually - see this page:

nasirdev74 commented 3 years ago

thanks, it works now.