Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect which version of an app is installed in iOS?

Tags:

ios

iphone

I understand it's possible to Detecting programmatically whether an app is installed on iPhone . I'm wondering if it's possible to detect what version of the other app is installed?

My app has a dependency on the Facebook native client, but behaves pretty badly if the phone has an older version of the Facebook app installed. So I'd like to be able to detect that and warn users.

-- UPDATE --

It's being implied in the comments that I can prevent users from installing my app in the first place if the appropriate version of the dependent app is not present. That would be a great solution too. If you know how I can specify a dependency on another app's version number, please explain that.

like image 275
Leopd Avatar asked Jun 23 '12 22:06

Leopd


People also ask

How do I find app version number?

Android System Settings Once in Settings, tap Apps and notifications (or your phone manufacturer's name it). When you're in there, tap See all xyz apps (where xyz is the number of apps you have installed). Now scroll down until you find the app you want to find the version for. Then tap it in the list.

How do I know if I have the latest version of an app?

For that, open Google Play Store on your phone. Then, tap on the three-bar icon at the top-left side. Select My apps & games from it. You will see the available app updates listed under the Updates section.

How do you check if an app is updated iOS?

Open the App Store. Tap your profile icon at the top of the screen. Scroll to see pending updates and release notes. Tap Update next to an app to update only that app, or tap Update All.


1 Answers

Unfortunately, you can not read your iOS device settings programmatically to get the native app Facebook version (i.e. via Settings, Facebook, Version).

Nevertheless, you might try to experiment with the custom URL schemes for Facebook as you noted in your own question.

It seems the different versions of the native Facebook application either support/does not support its own custom URL schemes.

As noted here from version 3.4, you can:

fb://places

From version 4.0, as noted here, you can:

fb://place/(fbid)

etc.

like image 167
StanislavK Avatar answered Oct 18 '22 12:10

StanislavK