Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    While it’s best to use WhatsApp’s official endpoint for the web, developers are welcome to cancel the default share action after invoking their own action, for example:

    a2a_config.callbacks.push({
        share: function(share_data) {
            if (share_data.service === 'WhatsApp') {
                location.href = 'whatsapp://send?text='
                    + share_data.title + ' ' + share_data.url;
                return { stop: true };
            }
        }
    });
    Thread Starter salvdelg

    (@salvdelg)

    Nice. Works perfectly.
    Thanks for the great plugin and the great support.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Whatsapp share protocol’ is closed to new replies.