I want to create a background service always run and loop a function in Xamarin.Forms, especially is in Android first, i tried Service with timer and Intent Service but not work. Please help me :(
Asked
Active
Viewed 678 times
1

Dennis Schröer
- 2,392
- 16
- 46

Đạt Nguyễn
- 35
- 6
-
@Dat,According to your description, if you just want to loop a function in background service, I suggest you can do one Infinite loop function, called in background service. Here is about creating service:https://learn.microsoft.com/en-us/xamarin/android/app-fundamentals/services/creating-a-service/ – Cherry Bu - MSFT Jun 12 '19 at 07:12
1 Answers
1
You can use MatchBacgroundService Nuget. It has a really simple API, and full of examples in their repo.

Bruno Caceiro
- 7,035
- 1
- 26
- 45
-
tried again, download Reactive.Core and this Nuget dont work when i close app – Đạt Nguyễn Jun 12 '19 at 08:25