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

Get Version Information

$
0
0

Is there a built in way in forms to get version information of the app? Or do we have to implement this ourselves?

For iOS:
var ver = NSBundle.MainBundle.InfoDictionary["CFBundleVersion"];

For Android:
var appVersion = String.Format("{0}.{1}", PackageManager.GetPackageInfo(PackageName, 0).VersionName, PackageManager.GetPackageInfo(PackageName, 0).VersionCode);


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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