ios - Open Whatsapp on a particular number in swift -
i trying open particular contact chat in whatsapp not getting solution. please totally stuck. have tried this:
let whatsappurl: nsurl = nsurl(string: "whatsapp://send?abid=\(primary)&;text=lol;")! if uiapplication.sharedapplication().canopenurl(whatsappurl){ uiapplication.sharedapplication().openurl(whatsappurl) }
as per whatsapp forum link, there no way can send message specific user, not available within whatsapp url scheme.
you set predefined message , url scheme able open whatsapp recent controller.
Comments
Post a Comment