title: Refresh Whatsapp contacts programmatically
body: <p>I am making a function in iOS where I am adding a new contact to a user's address book programmatically, which is all going fine. The next step is to send that new contact a message via Whatsapp, which is not very hard either. The purpose is to directly show the chat screen with the new contact.
  The problem is however that Whatsapp does sync it's contacts now and then.
  I am using the following intent for Whatsapp:</p>
  
  <pre><code>var whatsappUrl = (NSURL(string:"whatsapp://send?text=\(encodedmessage)&amp;abid=\(id)"))      
  </code></pre>
  
  <p>Where the message is an encoded string and the id is the id from the freshly added contact.
  When my program opens Whatsapp with that method, everything is going fine when the contact was already in the address book. When that contact is newly added, the Whatsapp screen will not go directly to that screen. Instead it will show the picker for all the contacts.</p>
  
  <p>Long story short, I want to refresh Whatsapp's contacts using my code, in order to send the user directly to the Whatsapp chat screen of the new contact instead of the contact picker screen, which is because Whatsapp's contacts are not synced yet with the new contact.</p>