0

I have an app extension which is featured in browsers, I would like to know from which app the user clicks my app extension.

e.g Say the user clicks my extension in a chrome browser , I would like to know whether it was chrome browser or safari.

The below code doesn't provide what I need. Any pointers in this regard will be appreciated.

(BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

          NSLog(@"Source Application is : %@", sourceApplication);

    }
Tobio
  • 255
  • 4
  • 13
  • What does say your log in case of Safari or Chrome? In `application:didFinishLaunchingWithOptions:` what log the `launchOptions` parameters? – Larme Apr 26 '16 at 18:59
  • App Extension won't call your openURL. It will call code in your Extension Target. Are you talking about URL Schemes to launch your application? – Arun Gupta Apr 27 '16 at 05:40

0 Answers0