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

Have to request permission on each run #21

Closed tanzil114 closed 7 months ago

tanzil114 commented 7 months ago

Whenever we are using any feature from the plugin such as showOverlayWindow, performGlobalAction, etc. we have to request permission again, on each run.

Expected Output: We should be able to request the permission once, and it should not be required for future runs, unless user manually revokes the permission, or the app gets deleted.

Also, if this gets implemented, it would be great to have revokeAccessibilityPermission as well.

By the way, huge thanks for building this, as this takes care of all the heavy lifting we'll have to do to implement Accessability service in Flutter.

X-SLAYER commented 7 months ago

hello did you try it on release mode cuz I think this related to only debugging

tanzil114 commented 7 months ago

Yes, after some digging I found out that as well. Accessability service gets stopped when we stop debugging, as it basically force stops the debugged app.