Hello, I can't send SMS anymore or make a call, the usage code is the following, until a few days ago it worked now it doesn't anymore,
the operating system was updated a few days ago, it could be that or some strange setting of my iPhone
this other one for sending sms
I have no errors, I have the message that the SMS has been sent, but it is not true, I checked the mobile number and it is correct
the operating system was updated a few days ago, it could be that or some strange setting of my iPhone
B4X:
Private Sub telef_Click
If nrtelprof.Length < 10 Then
hd.ToastMessageShow("Numero inesistente o incomplete",False)
Return
Else
Dim phonenumber As String
phonenumber = nrtelprof
If App.CanOpenUrl("tel:" & phonenumber) = True Then
App.OpenURL("tel:" & phonenumber)
End If
End If
End Sub
B4X:
Private Sub whats_Click
Try
If Main.App.CanOpenUrl($"sms:"$) = False Then
xui.MsgboxAsync("Non riesco ad aprire app per sms", "non posso inviare sms")
Else
Main.App.OpenUrl($"sms:${nrtelprof}&body=${testo}"$)
End If
hd.ToastMessageShow("Inviato Messaggio",False)
Catch
xui.MsgboxAsync(LastException.Message, "Errore invio SMS")
End Try
End Sub