Skip to content

Instantly share code, notes, and snippets.

@vanhoefm
Created May 17, 2012 15:34
Show Gist options
  • Save vanhoefm/2719669 to your computer and use it in GitHub Desktop.
Save vanhoefm/2719669 to your computer and use it in GitHub Desktop.
WhatsApp Self Verification
paramSmsManager.sendDataMessage(
(String)localObject1, // Destination address: Phone number entered by the user
null, // Source address: null means the current default SMSC is used
A, // Destination port: Random number between 16000 and 16099
paramString.getBytes(), // Data: "WhatsApp <code> WhatsApp internal use - safe to discard"
(PendingIntent)localObject2, // Sent Intent: Not important for this discussion
null // Delivery Intent: Not important for this discussion
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment