You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M &&
context.checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)
== PackageManager.PERMISSION_DENIED) {
val msg = "'registerLocator' requires the ACCESS_FINE_LOCATION permission."
result?.error(msg, null, null)
return
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: