1

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 :(

Dennis Schröer
  • 2,392
  • 16
  • 46
  • @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 Answers1

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