Open WhatsApp App When User Click Mobile Number Button
{
NSURL *whatsappURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://api.whatsapp.com/send?phone=%@",Your Number]];
if ([[UIApplication sharedApplication] canOpenURL: whatsappURL])
{
[[UIApplication sharedApplication] openURL: whatsappURL];
}
[[UIApplication sharedApplication] openURL: whatsappURL];
}
else
{
//Use form simulator...
DisplayAlertWithParam(@"", @"WhatsApp App Not Available Please Install WhatsApp App.");
}
}
DisplayAlertWithParam(@"", @"WhatsApp App Not Available Please Install WhatsApp App.");
}
}
Comments
Post a Comment
Thank You.