3

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

5
  • 1
    check for deadlocks.from mixing async/await with blocking calls like .Result or .Wait() Commented Jul 25, 2018 at 19:43
  • I had a .Result in there, let me get rid of that and try deploying again. Thanks Commented Jul 25, 2018 at 19:50
  • @Nkosi although that code isn't executed until the user presses a button so I'm not sure if that matters? Commented Jul 25, 2018 at 19:53
  • then check the code that runs initially and look for bottlenecks that could be causing the slow down. Commented Jul 25, 2018 at 19:56
  • That's the thing. I can't find any. App used to work fine Commented Jul 25, 2018 at 21:04

2 Answers 2

3

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

Sign up to request clarification or add additional context in comments.

Comments

0

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

2 Comments

I have the exact same problem, how did you fix your build definition?
I actually couldn't spend any more time grinding this out so I'm just building in Visual Studio and releasing through App Center

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.