rekabhq / background_locator

A Flutter plugin for updating location in background.
MIT License
288 stars 329 forks source link

method init(Map<dynamic, dynamic> params) async in location_service_repository do not work #219

Open irwing844 opened 3 years ago

irwing844 commented 3 years ago

First of all thanks for the plugin. Fantastic

Sometimes the process works and sometimes it doesn't. In the example code, it sometimes brings the value of main and sometimes takes -1 (When the variable is declared, this value is set by default)

JeanRoldanDev commented 3 years ago

use sqlite or sharedpreferences to keep your variables the plugin works fine, but this problem is caused by each manufacturer (huawei, xiaomi, etc) by freeing up memory, try this method if it works close this thread