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
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
this other one for sending sms
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
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
Hi,
no the messaging app does not open, it only displays the message "Inviato Messaggio" and not "Non riesco ad aprire app per sms" as I expected.
In the last few days Apple has updated iOS twice, I wouldn't want it to be this, unfortunately I don't have another iPhone
I would like you to confirm that the code works well on your iPhone, in this way I would try to get, even on loan, another iPhone
I tried the example, it works quite well, I say quite well because out of 5 text messages sent, 1 was not sent and the message "Message was not sent" came out. The old code I posted never failed a send
However, the link states the following: Not all devices support these two features. You should check whether the feature is supported or not. In this example it is done with this code:
and this worries me a lot since the app will be paid and not free. Also, to call a cell phone there is no code.
I would like to know why the old code that worked very well now does not work anymore,
maybe the iphone library needs to be tweaked to adapt it to the new ios 13.8.2?
I tried the example, it works quite well, I say quite well because out of 5 text messages sent, 1 was not sent and the message "Message was not sent" came out. The old code I posted never failed a send
The problem isn't in the library. There is no such thing that it sometimes work and sometimes doesn't. The problem was somewhere else. Maybe with your mobile network provider.
The problem isn't in the library. There is no such thing that it sometimes work and sometimes doesn't. The problem was somewhere else. Maybe with your mobile network provider.
could be. What about the notification Not all devices support these two features. You should check whether the feature is supported or not. In this example it is done with this code:
for a cell phone call, does it have any other code?
I meant when reported by the link that gave me to try the code, see attached image. My concern is to know if this code works on all iPhones, then I asked her if she has another code to call another cell phone, because the one I have does not work anymore
Thanks Erel.
From what I understand there is no other code to call a cell phone, I have to remove this possibility from my
two iPhone apps and leave it instead of the two Android apps, this is not a good thing, usually it is the
iPhone that offers something more