2
votes

Using visual studio 15.7.4

Xamarin 4.10.10.2

Xamarin forms project

compile version api level 26

target android version api level 26

release mode

sdk link assemblies only

using Xamarin forms 3.1.0

Issue: app starts fine (although long startup time) in debug mode. After installed to 2 different real phones the app splash screen shows on launch but hangs indefinitely

2
check for deadlocks.from mixing async/await with blocking calls like .Result or .Wait()Nkosi
I had a .Result in there, let me get rid of that and try deploying again. ThanksPatrick Goode
@Nkosi although that code isn't executed until the user presses a button so I'm not sure if that matters?Patrick Goode
then check the code that runs initially and look for bottlenecks that could be causing the slow down.Nkosi
That's the thing. I can't find any. App used to work finePatrick Goode

2 Answers

3
votes

The solution for me was to enable "Zipalign" on the "Signing and aligning APK file(s)" task in my Xamarin Android build definition on Azure Devops (previously VSTS). I got the answer from here

0
votes

This turned out to be something with the build definition in VSTS, as it worked when built right from Visual Studio