Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Get App Version Number From User?

I want to log the app version number so when user sends feedback, it will be in the email.

How can I get the number?

like image 987
Jon Avatar asked Jul 21 '11 09:07

Jon


People also ask

How do I find app version number?

Open the Settings app on your Android device. Open the "Applications" and/or "Application Manager" section. Tap on your app to select it. The App Settings Panel has multiple options including App Version, Notifications, and Location.

How do I see version numbers of my apps on iOS?

Open the Settings app on your iPhone, iPad, or iPod Touch. Select General > iPhone Storage. Wait a moment, and the screen will populate with storage stats for each of your installed apps. Tap the app you want to see the version number for.

What is app version code?

Version code is a special integer value which works as an internal version number. It is not visible to end users. Android system uses this number to protect against application downgrades — it is not possible to install new application with version code lower than in currently installed application.


1 Answers

NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
NSString* versionNum = [infoDict objectForKey:@"CFBundleVersion"];
NSString *appName = [infoDict objectForKey:@"CFBundleDisplayName"];
NSString *text = [NSString stringWithFormat:@"%@ %@",appName,versionNum];

You can send both the appname and version number using this code.

like image 193
Praveen S Avatar answered Sep 20 '22 13:09

Praveen S