Hi, as far as I know whatsapp supports abid and text parameters, as shown below:
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; }
But I want to send a message to the new number. For example, if my number is +123456
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?abid=+123456"];
This does not work.
Because, if the user inserts the whatsapp client whatsapp , the application should pop up in the whatsapp message whatsapp with this number.
I noticed that in some cases I can send a message to a number that is not listed in the contact list. they are interested in how it works.
source share