ilan Expert Licensed User Longtime User Nov 23, 2014 #1 is there any possibility to send from my app a link and choose different option like whatsup, email, sms,facebook... i know that i can send a mail or sms but what about whatsup,facebook?
is there any possibility to send from my app a link and choose different option like whatsup, email, sms,facebook... i know that i can send a mail or sms but what about whatsup,facebook?
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2014 #2 You need to know the app scheme (if such is available). For example: http://www.whatsapp.com/faq/en/iphone/23559013 Upvote 0
You need to know the app scheme (if such is available). For example: http://www.whatsapp.com/faq/en/iphone/23559013
ilan Expert Licensed User Longtime User Nov 23, 2014 #3 ok thanx, and how would it look like in b4i? B4X: NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } should i use the nativobject? Upvote 0
ok thanx, and how would it look like in b4i? B4X: NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } should i use the nativobject?
Erel B4X founder Staff member Licensed User Longtime User Nov 23, 2014 #4 B4X: Dim s As String = "whatsapp://send?text=Hello%2C%20World!" if App.CanOpenUrl(s) Then App.OpenUrl(s) You can use StringUtils to url escape the text parameter. Upvote 0
B4X: Dim s As String = "whatsapp://send?text=Hello%2C%20World!" if App.CanOpenUrl(s) Then App.OpenUrl(s) You can use StringUtils to url escape the text parameter.
Alberto Iglesias Well-Known Member Licensed User Longtime User Mar 30, 2018 #6 since the version iOS 9, you neeed to put this: B4X: #ATSEnabled: True Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2018 #7 I don't see how ATS is related to this thread. Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Mar 31, 2018 #8 After I put this, starting working..... If I take off, now working! very strange, but now, with this is working.... I'm using iOS 11.2.6 ( without jailbreak) Upvote 0
After I put this, starting working..... If I take off, now working! very strange, but now, with this is working.... I'm using iOS 11.2.6 ( without jailbreak)