Whatsapp link on products?

后端 未结 4 1035
离开以前
离开以前 2021-02-13 18:41

For the iPhone Apps, is it possible to have a Whatsapp link on products? Once link it would send a message to my mobile number through whatsapp. Please advice.

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-13 19:10

    I'm not sure exactly what you mean but perhaps this is what you're looking for: http://www.whatsapp.com/faq/en/iphone/23559013

    NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
    if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) {
    [[UIApplication sharedApplication] openURL: whatsappURL];
    }
    

提交回复
热议问题