2

I implemented my app with custom url scheme to access it. When I scan QR image which has custom url , app will be opened . Till ios 7 worked fine , but it is not working in ios 8.3 , even when i manually enter custom url scheme in safari browser. I have a doubt that still ios support custom url scheme ?

this is the method, to receive url scheme input, here i pass input to my viewController. urlScheme is myapp://settings?name:xxx?age=24

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    if (!url) { return NO; }
    NSString *urlString = [NSString stringWithFormat:@"%@",url];
    NSLog(@"inside openURL %@",urlString);
    HomeViewController *vc = [[HomeViewController alloc]init];
    vc.isURLLaunch = 1;
    vc.urlData = urlString;
    navigationController = [[UINavigationController alloc]initWithRootViewController:vc];
    [navigationController.navigationBar setTranslucent:NO];

    self.window.rootViewController = navigationController;
    [self.window makeKeyAndVisible];

    return YES;
}
ChenYilong
  • 8,543
  • 9
  • 56
  • 84
rajesh
  • 41
  • 6

0 Answers0