Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature req: Foreground mode #1

Open
ShashaankHari opened this issue Jul 2, 2023 · 6 comments
Open

Feature req: Foreground mode #1

ShashaankHari opened this issue Jul 2, 2023 · 6 comments

Comments

@ShashaankHari
Copy link

ShashaankHari commented Jul 2, 2023

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

@lochidev
Copy link
Owner

lochidev commented Jul 2, 2023

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

@ShashaankHari
Copy link
Author

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

Great! Thanks. App should be recognized more.

@lochidev
Copy link
Owner

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 added a commit that referenced this issue Jul 13, 2023
@lochidev
Copy link
Owner

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 🥳

@ShashaankHari
Copy link
Author

ShashaankHari commented Jul 13, 2023

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
Copy link
Author

ShashaankHari commented Jul 13, 2023

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! 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants