![](/img/trans.png)
[英]Url scheme for making WhatsApp call programmatically from iOS app (voice call VOIP)?
[英]Is there a way to make a hidden call from an iOS app through the telprompt URL scheme?
我可以使用以下代碼撥打電話:
if let url = URL(string: "telprompt://\(number)"), UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
現在我想用隱藏的電話號碼撥打電話,所以我會添加#31#
但是url
不是,並且canOpenURL
function 甚至都沒有被調用。
if let url = URL(string: "telprompt://#31#\(number)"), UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
tel://
方案響應相同,我不想在系統設置中 go 並在那里更改它,因為它會在我每次撥打電話時隱藏我的號碼。
任何想法?
Xcode 11.5 - macOS Catalina - Swift 5
您是否嘗試過對#
進行 url 編碼?
"telprompt://%2331%23\(number)"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.