App Crashes On Launch After Not Being Opened For A Day

Ecco 1 Reputation point
2020-11-20T07:59:17.833+00:00

My Xamarin project runs a simple token identification check on launch, which is where I believe it is being held up. The odd part is that it only crashes after not being opened for an extended period of time, like after 24 hours. No error is shown and the crash isn't fatal as you can still see it running in the background, but it won't launch. Once this initial error occurs, and the app is removed from the background, it launches and runs fine. I previously posted regarding a similar (possibly the same) issue, but when that occurred, it would result in a crash as well as a crash report. It stopped 'crashing' after changing the iOS linker settings. The code executed at launch can also be seen in a code review thread. I don't understand why this is happening, the token is definitely not expired because they are set to expire 14 days after issuing. I'm using Azure for all backend and the web API is an ASP.NET project hosted on a free testing web hosting plan.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,355 questions
{count} votes

Your answer

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