I make a function in iOS where I add a new contact to the user's address book programmatically and everything is going well. The next step is to send a message via Whatsapp to this new contact, which is also not very difficult. The goal is to directly display the chat screen with a new contact. However, the problem is that Whatsapp is syncing her contacts now and then. I use the following intent for Whatsapp:
var whatsappUrl = (NSURL(string:"whatsapp://send?text=\(encodedmessage)&abid=\(id)"))
If the message is an encoded string and id is the identifier from a newly added contact. When my program opens Whatsapp with this method, everything will be fine when the contact was already in the address book. When this contact is added again, the Whatsapp screen will not go directly to this screen. Instead, it displays a collector for all contacts.
In short, I want to update Whatsapp contacts using my code to send the user directly to the Whatsapp chat screen of a new contact, and not to the contact selection screen, because Whatsapp contacts are not yet synchronized with the new contact.
ios whatsapp
Niels Robben Jan 16 '15 at 13:21 2015-01-16 13:21
source share