Hello, i did it in Android, but i could not find how to do it in iOS.
Here is the code in B4A:
B4X:
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_VIEW, $"https://api.whatsapp.com/send?phone=55${number}&text=${""}"$)
Intent1.SetComponent("android/com.android.internal.app.ResolverActivity")
StartActivity(Intent1)
1) Add #QueriesSchemes : whatsapp inside #Region Project Attributes ... #End Region
2) create an URL: stringUrl = "whatsapp://send?phone=1234567890&text=hello" and encode it to UTF8 using EncodeUrl function (StringUtils)
3)
B4X:
If App.CanOpenUrl (stringUrl) Then
App.OpenUrl (stringUrl)
Else
' Ask to install WhatsApp
End If