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

Maintaining app activity even after it's cleared from recent apps on Android #2

Open
seikosantana opened this issue May 10, 2023 · 2 comments

Comments

@seikosantana
Copy link

Is there a way to keep the application active although it is cleared from recent apps?
For example, WhatsApp, although is cleared from recent apps, it still receive messages and media. Telegram also does that. Online shop apps also does that. KDE connect, still have persistent notification (i dont know if it is the right word) and still listens for network discovery although cleared from recent apps.

I need to keep my websocket connections alive and process messages, even if the app is closed from recent apps if possible. Is there a way or workaround for this?

@angeloraso
Copy link
Owner

Hi there!

I also have to solve the same problem. So far, this plugin is the closest I've come to finding a solution. I hope it helps you in the meantime.

If you discover any additional solutions during your search, I would greatly appreciate it if you could share them in this issue so we can update the plugin.

@seikosantana
Copy link
Author

seikosantana commented May 11, 2023

If you discover any additional solutions during your search, I would greatly appreciate it if you could share them in this issue so we can update the plugin.

I will. However I don't have much experience with native android development or good understanding of Capacitor and interops.

I wonder if it is possible to have capacitor executing without starting any activity.

heffthedev referenced this issue in heffthedev/capacitor-background-mode May 7, 2024
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