Open andrewzakhartchouk opened 2 years ago
@andrewzakhartchouk
Two things that can cause this issue:
ACCESS_FINE_LOCATION
added in manifestIMO, most probably it's a permission issue.
To add the permission in the manifest:
Add <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
in your android manifest file.
Ex: Check out this file for reference.
I had not noticed this earlier in the year for whatever reason, but on background_locator 1.6.6, Android 12 devices would crash when trying to start the locator. The error/crashes still persist when upgrading to the latest version (1.6.12). Older versions of Android do not have this issue.
With some poking around, the piece of code that throws this error (found in BackgroundLocatorPlugin.kt) can be commented out to stop causing the error. This is only a temporary fix, but perhaps can help whomever is better versed with this package.