TextToolsPro icon indicating copy to clipboard operation
TextToolsPro copied to clipboard

Feature req: Foreground mode

Open ShashaankHari opened this issue 2 years ago • 6 comments

Feature request:

App running in foreground mode

Description:

Hello dev, this is a great app, I have been searching for an app that is espanso compatible for a long time. Works great but on newer Android versions, accessibility gets turned off after reboots. So a toggle for foreground mode would be really nice.

https://developer.android.com/guide/components/foreground-services

ShashaankHari avatar Jul 02 '23 14:07 ShashaankHari

Thank you for the suggestion! I'll try to make it happen in the next update :D

lochidev avatar Jul 02 '23 15:07 lochidev

Thank you for the suggestion! I'll try to make it happen in the next update :D

Great! Thanks. App should be recognized more.

ShashaankHari avatar Jul 02 '23 15:07 ShashaankHari

Hi mate! I tested this on android 13 emulator and an android 12 device, and the accessibility service stays on after a reboot. however my app isn't really handling reboots and I will fix that soon. (Right now: you need click on the app again, so it can communicate your config to the accessibility service, I'll get the accessibility service itself to read that config too). Regarding the foreground service option, do you know any apps that do this that I can take inspiration from? Where they keep an accessibility service alive? I don't really like the idea of interfering with how an OS handles turning on such services. We'll keep the issue open though :D

lochidev avatar Jul 12 '23 13:07 lochidev

v6.1 is released and it can handle reboots automatically now. Is your android OS version turning off the accessibility service? So far my android 12 device and my android 13 emulator has not turned it off 🥳

lochidev avatar Jul 13 '23 10:07 lochidev

Regarding the foreground service option, do you know any apps that do this that I can take inspiration from? Where they keep an accessibility service alive? I don't really like the idea of interfering with how an OS handles turning on such services. We'll keep the issue open though :D

https://github.com/sunshine0523/Mi-FreeForm

I know an app named MI freeform needs root and xposed. It will have an option to switch to foreground mode if issues occur with accessibility mode (it'll have a notification)

ShashaankHari avatar Jul 13 '23 13:07 ShashaankHari

v6.1 is released and it can handle reboots automatically now. Is your android OS version turning off the accessibility service? So far my android 12 device and my android 13 emulator has not turned it off 🥳

I'll check it, had accessibility turned off a few times before, I'll let you know. New update is great! UI is a little brighter and nice! 🥳

ShashaankHari avatar Jul 13 '23 13:07 ShashaankHari