If I earlier wanted to send a longer message with WhatsApp, I have written it on my Mac or PC, then emailed it to myself, opened the email on my smartphone, got the message copied to the clipboard, pasted it to WhatsApp and finally sent it. No fun. That's why I was disappointed when I heard that the new WhatsApp Web still doesn't support Mac and iPhone. Looking for alternatives I played a bit with PushBullet. With PB you can create a message on any device and send it to your smartphone. That's nice but it still requires the clipboard detour.
The Solution: PushBullet with WhatsApp's URL schemeA link sent with PushBullet normally opens in the browser of the target device. But if the link is a URL scheme it can open almost any app.
WhatsApp comes with a URL scheme that allows to pass text, even to a specific contact.
If you send this as link PushBullet opens WhatsApp on the target device. After selecting a contact it starts a new chat session with the sent text "Hello World!".
If you know the Address book ID of the contact you can even start the chat directly:
The script uses the PushBullet API to retrieve a list of your connected devices and to push the message to WhatsApp.
The script runs locally on every browser. If you upload it to a web space you can push your messages from any device. No need to install any software.