Application Note App Interface

AN 1105 v1.0 | 2/3
Implementing the launch of the app
MobileConnect/CinemaConnect
Customer App
Apple iOS - How to launch the MobileConnect app or the App
Store to download it
URL Scheme: “sennheiser-mobile-connect://“
An iOS app that wants to launch MobileConnect has to execute the following lines of code:
NSURL *url = [NSURL URLWithString:@”sennheiser-mobile-connect://”];
if ([[UIApplication sharedApplication] openURL:url] == NO) {
NSURL *itunesUrl = [NSURL URLWithString:@”itms-apps://itunes.com/app/
SennheiserMobileConnect”];
[[UIApplication sharedApplication] openURL:itunesUrl];
}
The code tries to open an URL using the scheme sennheiser-mobile-connect. If this fails we assume
MobileConnect is not installed and redirect the user to the App Store page for MobileConnect.
Return to the launching app
With iOS 9 Apple introduced a way to get back to the original app by providing a text link in the top
left corner. For older iOS versions the user has to use the home button to return to the original app.