Open another app from your app : Custom URL scheme

Become iOS developer with a lot of Fun


In Receiver application :

First add a new field in you receiver application’s Plist file.

and add / modify appdelegate class functions like given below :

(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions


    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];

    self.viewController = [[[ViewController alloc] initWithNibName:@”ViewController” bundle:nil] autorelease];

    self.window.rootViewController = self.viewController;

    [self.window makeKeyAndVisible];

    /* check the launch option of the application and display an error message*/

    if (![launchOptions objectForKey:UIApplicationLaunchOptionsURLKey]) {

        UIAlertView *alertView;

        alertView = [[UIAlertView alloc] initWithTitle:@”Error” message:@”The application is launched without any message.” delegate:nil cancelButtonTitle:@”OK” otherButtonTitles:nil];

        [alertView show];


    return YES;


– (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {

    UIAlertView *alertView;

    NSString *text = [[url host] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

    alertView = [[UIAlertView alloc] initWithTitle:@”Message Received” message:text delegate:nil cancelButtonTitle:@”OK” otherButtonTitles:nil];

View original post 146 more words

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

%d bloggers like this: