I m developing application for iOS and there is sharing feature on whatsApp i did this part now i want that i would share link on WhatsApp if user click on this and user has installed this application then it would be opened otherwise app store link will be opened. Please share idea if anyone had did this part earlier. I think i need to crate custom url but don't know how it can be done. I have used this code.
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
NSLog(@"Calling Application Bundle ID: %@", sourceApplication);
NSLog(@"URL scheme:%@", [url scheme]);
NSLog(@"URL query: %@", [url query]);
return YES;
}