Closed magnus-lpa closed 5 years ago
Adding
<uses-permission android:name="android.permission.WAKE_LOCK" />
to AndroidManifest.xml
seems to solve this issue in my case, but how come it seems to work for others without that permission?
Also, now I get another error when pressing the "Register" button:
I/GeofencingPlugin(13430): Successfully added geofence
I/GeofencingService(13430): Starting GeofencingService...
E/flutter (13430): [ERROR:flutter/shell/common/shell.cc(178)] Dart Error: Unhandled exception:
E/flutter (13430): 'dart:isolate/runtime/libtimer_impl.dart': Failed assertion: line 433: '<optimized out>': is not true.
E/flutter (13430): #0 _AssertionError._doThrowNew (dart:core/runtime/liberrors_patch.dart:40:39)
E/flutter (13430): #1 _AssertionError._throwNew (dart:core/runtime/liberrors_patch.dart:36:5)
E/flutter (13430): #2 _Timer._cancelWakeup (dart:isolate/runtime/libtimer_impl.dart:433:12)
E/flutter (13430): #3 _Timer._notifyEventHandler (dart:isolate/runtime/libtimer_impl.dart:299:7)
E/flutter (13430): #4 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:419:5)
E/flutter (13430): #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (13430): Fences: [mtv] Location (55.7039743, 13.1903389) Event: GeofenceEvent.exit
Should be fixed by https://github.com/bkonyi/FlutterGeofencing/pull/16. Sorry for the delay on this!
@magnus-lpa this exception seems to be cause crash to devices running android 12 and above
Cloned the repo and trying to run the example app.
Location permission and high accuracy is granted.
This is what happens when I try to run it on a physical device (Huawei Honor 6X with Android 7):
When trying it on an emulator I get https://github.com/bkonyi/FlutterGeofencing/issues/8#issue-405304944 instead, so the app can be run on neither for me.