This is the code I'm using:
let instagramURL = NSURL(string: "instagram://app") if UIApplication.shared.canOpenURL(instagramURL! as URL) {
I am unable to enter the if loop.
I get this error:
canOpenURL: crash for URL: "instagram: // app" - error: "This application is not allowed to request for a schema scheme"
I also have Instagram login on my device.
ios iphone swift
Krunal Patel
source share