I want to check if a device has TikTok installed. Currently I am trying with:
func canOpenTiktok() -> Bool {
if let url = URL(string: "tiktok://app") {
if UIApplication.shared.canOpenURL(url) {
return true
}
}
return false
}
but that always returns false, regardless of whether or not Tiktok is installed.
Is there a way to check?