Yes it should work, i do it like this:How to I put <VAR> string instead of the number you wrote?
is this will work?
If App.CanOpenURL("tel:") Then App.OpenURL("tel:" & Number )
Dim phonenumber As String
phonenumber = "0505552222"
If App.CanOpenUrl("telprompt:" & phonenumber) = True Then
App.OpenURL("telprompt:" & phonenumber)
End If
Sub Button1_click
Private phonenumber As String
phonenumber = "tel:632222222"
If App.CanOpenUrl(phonenumber) = True Then
App.OpenURL(phonenumber)
End If
End Sub
An now: -canOpenURL: failed for URL: "tel:632222222" - error: "(null)"Knows anybody if this error is related to the use of the emulator?
-canOpenURL: failed for URL: "tel:632222222" - error: "This app is not allowed to query for scheme tel"
TxB4X:Sub Button1_click Private phonenumber As String phonenumber = "tel:632222222" If App.CanOpenUrl(phonenumber) = True Then App.OpenURL(phonenumber) End If End Sub
tx DYL15, but that is done from the begining...Add
to your app to allow it to call.B4X:#QueriesSchemes: tel
just remove "tel:" from your phone numberKnows anybody if this error is related to the use of the emulator?
-canOpenURL: failed for URL: "tel:632222222" - error: "This app is not allowed to query for scheme tel"
TxB4X:Sub Button1_click Private phonenumber As String phonenumber = "tel:632222222" If App.CanOpenUrl(phonenumber) = True Then App.OpenURL(phonenumber) End If End Sub
No, this is not the way...just remove "tel:" from your phone number
-canOpenURL: failed for URL: "632222222" - error: "Invalid input URL"
have you seen my post above??No, this is not the way...
The protocol is a must.B4X:-canOpenURL: failed for URL: "632222222" - error: "Invalid input URL"
Tx
Dim phonenumber As String
phonenumber = "0505552222"
If App.CanOpenUrl("telprompt:" & phonenumber) = True Then
App.OpenURL("telprompt:" & phonenumber)
End If
now i see that u r using an emulator. i dont think that phone calls can be performed from an emulator!!Knows anybody if this error is related to the use of the emulator?
Yeah, that is my very first question... I have not an iPhone, only 4 iPad and the Simulator from Xcode.now i see that u r using an emulator. i dont think that phone calls can be performed from an emulator!!
you should try your code on a real phone