CSharpShellApp
CSharpShellApp copied to clipboard
Background service question
Is there any way to create a service in the background with C# Shell as Maui project,that is still running even after app is killed? If it's possible, how?
Ui.StartService method might do it. However the success will vary from Android versions and manufacturers. Make sure to disable battery optimizations or whatever the manufacturer named it for said app or the app will be killed pretty fast when it goes in the background.
But the service will still running with Ui.StartService in the background after app is closed?
Not certain. I'll make sure the service methods themselves work, the rest is up to the OS configuration
@radimitrov How can I use Intent argument in Ui.StartService(it only accepts string)?