Share via

Backgrounding in iOS apps

Anonymous
2022-09-19T14:28:06.897+00:00

Hello

I am currently facing a problem. I am working on an mobile app made with Xamarin for Android and iOS. The app must work permanently even in background. But in the iOS version, the app is killed after 2 or 3 mins.

Previously, the app was using the Localisation API in order to run permanently. The problem is the battery consuming. Battery is down in 1 night which is not acceptable. And I can't use remote notifications because the devices will not be connected to Internet, only to local network

I have already done some researches and tests. I can't use background fetch (the app is still killed). I would like to avoid use of localisation. I saw a video about the local push connectivity feature made by Apple (https://developer.apple.com/videos/play/wwdc2020/10113/) but I don't know if it has been implemented in Xamarin. I didn't find any information on that subject in Xamarin docs.

Do you know if it exist in Xamarin ? if not, do you have any other ideas ?

Thanks for your help

Developer technologies | .NET | Xamarin
0 comments No comments

1 answer

Sort by: Most helpful
  1. Sreeju Nair 12,761 Reputation points
    2022-09-19T18:18:08.623+00:00

    You have the option to register the app as background neccessary application.

    Refer: https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/backgrounding/ios-backgrounding-techniques/registering-applications-to-run-in-background

    Hope this helps

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.