pierrem Member Licensed User Longtime User Oct 8, 2015 #1 Hello, Code: Sub ivPhone_Click Dim iv As ImageView iv=Sender Log("Requested # :"&iv.Tag) If App.CanOpenURL("tel:") = True Then Log("openUrl(tel:) OK") App.OpenUrl("tel:"&iv.Tag) Else hud.ToastMessageShow("Cannot place call",True) End If End Sub ... under iOS 7 But (App.CanOpenURL("tel:")) returns TRUE I saw in this post that OS version must be >= 8 https://www.b4x.com/android/forum/threads/open-default-settings-app.51115/#content Is it a way for older iOS version ? btw, examples with MailComposer + MessageComposer from this forum work perfectly ! Thks in advance
Hello, Code: Sub ivPhone_Click Dim iv As ImageView iv=Sender Log("Requested # :"&iv.Tag) If App.CanOpenURL("tel:") = True Then Log("openUrl(tel:) OK") App.OpenUrl("tel:"&iv.Tag) Else hud.ToastMessageShow("Cannot place call",True) End If End Sub ... under iOS 7 But (App.CanOpenURL("tel:")) returns TRUE I saw in this post that OS version must be >= 8 https://www.b4x.com/android/forum/threads/open-default-settings-app.51115/#content Is it a way for older iOS version ? btw, examples with MailComposer + MessageComposer from this forum work perfectly ! Thks in advance
Erel B4X founder Staff member Licensed User Longtime User Oct 8, 2015 #2 App.CanOpenURL is supported on iOS 7. The specific url discussed in that post is only available in iOS 8+. Upvote 0
App.CanOpenURL is supported on iOS 7. The specific url discussed in that post is only available in iOS 8+.