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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -