title: Launch App using URL, but OpenUrl Not Called
body: <p>I have implemented a URL Scheme and use it to pass data to my app by calling method. The entire code is shown as below</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{
      // Check the calling application Bundle ID
      if ([[url scheme] isEqualToString:@"yuvitime"])
      {
          NSLog(@"URL scheme:%@", [url scheme]);
          NSString * yuvitimeRequestValue = [url query];
          NSDictionary * userInfor = [[NSDictionary alloc]initWithObjectsAndKeys:yuvitimeRequestValue, @"YuvitimeRequest", nil];
          NSNotificationCenter * notificationCentre = [NSNotificationCenter defaultCenter];
          [notificationCentre postNotificationName:@"URLSCHEMEACTIVATEDNOTIFICATION" object:self userInfo:userInfor];
  
          return YES;
      }
      else
          return NO;
  }
  </code></pre>
  
  <p>If my app is in the background, everything works fine. When you click a URL, the app is brought back to Foreground and the URL is handled as coded in the above function. </p>
  
  <p>However, if the app is terminated (app not launched yet), by clicking the URL, it only launches the app without calling the handling function that is shown above. </p>
  
  <p>After searching through, the best result i manage to get is this </p>
  
  <p><strong>application:WillFinishLaunchingWithOptions:</strong>
  <em>When asked to open a URL, the return result from this method is combined with the return result from the <code>application:didFinishLaunchingWithOptions:</code> method to determine if a URL should be handled. If either method returns NO, the system does not call the <code>application:openURL:options</code>: method. If you do not implement one of the methods, only the return value of the implemented method is considered.</em> </p>
  
  <p><strong>- application:didFinishLaunchingWithOptions:</strong>
  <em>This method represents your last chance to process any keys in the launchOptions dictionary. If you did not evaluate the keys in your <code>application:willFinishLaunchingWithOptions:</code> method, you should look at them in this method and provide an appropriate response.
  Objects that are not the app delegate can access the same launchOptions dictionary values by observing the notification named <code>UIApplicationDidFinishLaunchingNotification</code> and accessing the notification’s userInfo dictionary. That notification is sent shortly after this method returns.
  The return result from this method is combined with the return result from the <code>application:willFinishLaunchingWithOptions:</code> method to determine if a URL should be handled. If either method returns NO, the URL is not handled. If you do not implement one of the methods, only the return value of the implemented method is considered.</em></p>
  
  <p>Despite the explanation, i still do not know how to do it and i couldn't find anything else concrete online. </p>
  
  <p>Thanks</p>
  
  <p>Regards</p>