X-SLAYER / flutter_accessibility_service

Flutter plugin for interacting with Accessibility Service in Android.
https://pub.dev/packages/flutter_accessibility_service
MIT License
33 stars 24 forks source link

Accessibility permission is disabled if I close the application or turn off my cell phone #26

Open Zhatra opened 6 months ago

Zhatra commented 6 months ago

After having granted the accessibility permission to my application, if I close it the permission stops working and when I reopen it when I activate the permission in settings it tells me that the permission stopped working, how can I do so that when I grant the permission with the permission package is maintained even if I close the application or restart my cell phone.

Zhatra commented 6 months ago

@X-SLAYER

X-SLAYER commented 6 months ago

is this on release mode ? or debug mode

Zhatra commented 6 months ago

is this on release mode ? or debug mode

@X-SLAYER In both, when I try it in release mode the application works correctly until I close the application or restart the cell phone, the accessibility permission stops working and the only way to make it work again is by deactivating it and activating it again.

doshpin commented 3 weeks ago

I have the same issue, when closing the app, it crashed with exception:

E/AndroidRuntime(28005): java.lang.RuntimeException: Unable to destroy activity {com.example.jimbo/com.example.jimbo.MainActivity}: java.lang.IllegalArgumentException: Receiver not registered: g1.f$a@385cfb5

E/AndroidRuntime(28138): java.lang.NullPointerException: Attempt to invoke virtual method 'io.flutter.embedding.engine.renderer.FlutterRenderer io.flutter.embedding.engine.a.s()' on a null object reference