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

Stream stops when app is closed #5

Closed tolotrasamuel closed 1 year ago

tolotrasamuel commented 1 year ago

Hello,

Thank you for this. Is it normal that the stream stops when the app is closed ? I have used Accessibility Service on Android app before and even if the app is closed, the streams continue. Is there any way to achieve the same with this plugin ? Like using an isolate or something like that?

Thanks

X-SLAYER commented 1 year ago

yes you can by using foreground task you can check this example you just need to replace the service if foreground with the accessibility service