iOS Question Share Simple Text With Whatsapp

tufanv

Expert
Licensed User
Longtime User
I found the solution:

add this:
#QueriesSchemes: whatsapp

B4X:
    Dim txt As String = "Hello%2C%20World!"
Dim url As String = "whatsapp://send?text=" & txt
If App.CanOpenUrl(url) Then App.OpenUrl(url)

my only question is , if whatsapp is not present in the phone , will the app crash or do nothing ?_
 
Upvote 0
D

Deleted member 103

Guest
my only question is , if whatsapp is not present in the phone , will the app crash or do nothing ?_
Probably only the message "whatsapp is not installed".
I also get the message when sending e-mail because I did not configure an e-mail.
 
Upvote 0
Top