tufanv Expert Licensed User Longtime User Aug 15, 2018 #1 Hello, I have searched the forum a bit but couldn't find an appropriate answer. I want to share a simple text with whatsapp. I think openapp is no longer possible after ios 9. Is there any code snippet that works currently wo share a text with whatsapp? (there is a method here but I just want to make user use whatsapp so not able to use this : https://www.b4x.com/android/forum/t...pp-with-activityviewcontroller.73159/#content) TY
Hello, I have searched the forum a bit but couldn't find an appropriate answer. I want to share a simple text with whatsapp. I think openapp is no longer possible after ios 9. Is there any code snippet that works currently wo share a text with whatsapp? (there is a method here but I just want to make user use whatsapp so not able to use this : https://www.b4x.com/android/forum/t...pp-with-activityviewcontroller.73159/#content) TY
tufanv Expert Licensed User Longtime User Aug 15, 2018 #2 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
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 ?_
D Deleted member 103 Guest Aug 15, 2018 #3 my only question is , if whatsapp is not present in the phone , will the app crash or do nothing ?_ Click to expand... 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
my only question is , if whatsapp is not present in the phone , will the app crash or do nothing ?_ Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2018 #4 App.CanOpenUrl will return False if whatsapp is not installed. tufanv said: I think openapp is no longer possible after ios 9. Click to expand... Not true. The only change is that you need to declare the scheme with #QueriesSchemes. Upvote 0
App.CanOpenUrl will return False if whatsapp is not installed. tufanv said: I think openapp is no longer possible after ios 9. Click to expand... Not true. The only change is that you need to declare the scheme with #QueriesSchemes.