title: Can I possibly get the parameter in URL Scheme when my app set to not run in background?
body: <p>I am trying to open my app using URL Scheme with a parameter on it, my problem is, is it possible to get the parameter when the app is set to not run in the background.</p>
  
  <p>SampleApp-info.plist</p>
  
  <pre><code>  &lt;key&gt;UIApplicationExitsOnSuspend&lt;/key&gt;
          &lt;true/&gt;
  </code></pre>
  
  <p>AppDelegate.m</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
  {
  
      NSLog(@"url recieved: %@", url);
      NSLog(@"scheme: %@", [url scheme]);
      NSLog(@"query string: %@", [url query]);
      NSLog(@"host: %@", [url host]);
  
      return YES;
  }
  </code></pre>
  
  <p>When UIApplicationExitsOnSuspend is set to true and try to open my app from Safari, it's not creating any logs but when I remove the key it is working well. I have to <a href="https://stackoverflow.com/a/4239237/6011054">restart</a> my app to load the first viewcontroller and suspending it on the background is the best way, I think...</p>
  
  <p>Can anyone help me on this? or a better way so I can reload my app starting in the first viewcontroller? Newbie here.</p>
  
  <p>I really appreciate any help. Thank you and regards.</p>