I'm using openURL to send a text to a WhatsApp contact from my app, But when I use this code, open WhatsApp and then I need press to send into WhatsApp app. Could be possible send this without open WhatsApp?
I have the abid contact and the text, but i don't like open WhatsApp and then press send button. Is this possible?
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?abid=123&text=Hello%2C%20World!"];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
[[UIApplication sharedApplication] openURL: whatsappURL];
}