Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to display alert only once

$
0
0

How can i display an alert only once.
I am calling the alert on appearing

async private void ADALAuthenticate()
{
Version ver1 = new Version(obj.Android.VersionNumber);
Version ver2 = new Version(Settings.GetCurrentVersionSettings);
if (ver1 > ver2)
{
var install = await DisplayAlert("Version " + ver1 + " available", "New version of application available. Please, update for new features, "Install Now",
"Later");
}

I need to display the alert only once until there is a change in version number.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>