xcode6 - Is it possible to send text in WhatsApp directly from an iOS App? -
i'm using openurl send text whatsapp contact app, when use code, open whatsapp , need press send whatsapp app. possible send without open whatsapp?
i have abid contact , text, don't open whatsapp , press send button. possible?
nsurl *whatsappurl = [nsurl urlwithstring:@"whatsapp://send?abid=123&text=hello%2c%20world!"]; if ([[uiapplication sharedapplication] canopenurl: whatsappurl]) { [[uiapplication sharedapplication] openurl: whatsappurl]; }
two recent solutions (july 2017)
i've found, tested , refered 2 new different solutions in this other answer, 1 through official whatsapp api (because s.o. policies had put link solution, no duplicates).
Comments
Post a Comment