function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How do I call an external app under iOS with Mobile SDK?

I've built a Mobile SDK hybrid remote application.  Now I want to call out to another app on the same mobile device via a URL, which will callback into my app when it is finished. Is there a function in the Mobile SDK that provides that for me?
No SDK required for this!

You can open an external URL via -[UIApplication openURL:] and you can check first if the device supports that URL (usually equivalent to checking whether that app is installed) via -[UIApplication canOpenURL:].

Callback URLs are trickier; it really depends on which app you are opening. Many apps support the scheme, in which case you can append an x-success path component to the URL you open, and the target app should open your x-success URL when the user's task is complete.