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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -