I am trying to send text followed by a url using the WhatsApp custom url scheme. There is only one valid parameter for this purpose: text :
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
The problem occurs when I want to add my own URL to this text. I decided to code it using this:
NSString *encodedURLString = (NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes( NULL, (CFStringRef)urlAbsoluteString, NULL, (CFStringRef)@"!*'();:@&=+$,/?%#[]", kCFStringEncodingUTF8 ));
The URL is sent to WhatsApp along with the text, but it is not decoded on the WhatsApp side:

Any ideas? Thanks!
ios objective-c cocoa whatsapp
Sendoa
source share