I'm using WKWebView to show YouTube in my application. When I load a youtube page it's sometimes open the YouTube App in my iPhone device.
This is the code I'm using:
NSURLRequest * req = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.youtube.com/"]];
[self.loginWebView loadRequest:req];
There is an option to detect the popup and prevent it?