Is there any way to create background services which will run even if the app is closed?

Viewed 50

I am creating a Xamarin application where I used to store documents, I need to create a background service that should run continuously even if the app is closed.(for both android and iOS)

I am trying to create this background service for deleting the documents from my mobile app every 5 days.

So, adding a never-ending process for deleting documents based on days from the mobile app is a good way to do it? I need an idea of how to implement it.

I did some research I can only see MessageCenter for doing background process, but i need a way to implement a never ending background services. Is there any way?

1 Answers
Related