In my current project I need to share text on whatsapp from iOS app.
Here is my code to share text on whatsapp:
NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
[[UIApplication sharedApplication] openURL: whatsappURL];
}
but canOpenURL always returning false in iOS9.
Is there any iOS9 privacy policy? Can anyone help me out?