I have a xamarin.android and xamarin.ios app and I want to display a splash screen if the apk build or version number is new. In other words, if I update my apk from version 5 to 6, I want to be able to detect that change after login and trigger the splash screen. I see some version and build controls in xamarin.essentials, but am unable to determine the proper implementation of this. Can someone help me get on the right track and help me solve this issue? I did not provide code because it is not needed but I may provide it if needed.
CodePudding user response:
What you need seems pretty simple:
if(Xamarin.Essentials.VersionTracking.IsFirstLaunchForCurrentVersion)
// trigger that splash screen
To make this work, Xamarin.Essentials need to be initialised first, as explained in the docs