I am in this situation where I have to display a button which says “Open myApp” (if myApp is installed on the device) or it says “Download myApp” (if myApp is not installed on the device) in an iphone app. To do this, I need to detect whether an app (with a known custom URL) has been installed on the device. How can I do this? Thanks in advance.
Share
UPDATED 8th January 2014 – 3 things you can do
I actually had to do this for a client again. They wanted users to be able to open their second app from the main app if it had been installed.
This is my finding. Use the
canOpenURLmethod to check if an app is installed or/and then use theopenURLmethod toAll code samples available for each scenario
Choose one option, I’ve just spoiled you with choice. Choose one that fits your requirements.
In my case I had to use all three options in different areas of the program.