After had set the scheme of queries to do ininfo.plist file:
<key>LSApplicationQueriesScheme</key>
<array>
<string>telprompt</string>
<string>fb-messenger</string>
<string>tel</string>
</array>
I would like to open the phone prompt in this way:
'let url = URL(string: "telprompt://\(self.offertaObj.callNumber)")
if UIApplication.shared.canOpenURL(url!) {
UIApplication.shared.open(url!)
}else{
self.view.makeToast("Contattaci al numero: "+self.offertaObj.callNumber, duration: 3, position: .bottom)
}
I will receive always the message that the app isn't allowed to open that query scheme, meanwhile I didn't found any reference about how to ask to the user to allow it with toast messages.
Now in ios , schema has been change for perform call from application. Refer below code for perform call.