I need to use IntentService as foreground service, but I cannot find sample code.
Can anyone provide sample code?
Here is an article you can refer to：https://stacktips.com/tutorials/android/creating-a-background-service-in-android
I am looking for running it as a foreground service, not a background service. Do you have the info?
You can refer to the following link: https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/services/foreground-serviceshttps://www.c-sharpcorner.com/article/understand-intentservice-in-xamarin-with-visual-studio-2015/
@jezh Thanks for your links, which does not have what I want, which is starting IntentService as foreground services.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies