Search code examples
c#windows-phone-8

Share content via whatsapp in wp8 apps


Just implemented sharing via SMS, Mail Twitter and Facebook with the from the WP8 SDK provided ShareStatusTask:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks.sharestatustask(v=vs.105).aspx

Whatsapp does not seem to be supported here - do you guys know a trick to get around this?


Solution

  • Technically no, not yet, but something may come in the future using Uri Schemes.

    For now, it seems that you can only run the WhatsApp app by doing this:

    await Windows.System.Launcher.LaunchUriAsync(new Uri("whatsapp:"));
    

    but on iPhone, you can use this form of Uri

    whatsapp://send?text=Hello%2C%20World!
    

    so I expect the same functionality to appear in the near future in WhatsApp for Windows Phone. There's no reason why they wouldn't implement it.

    In fact, maybe they already have, but I haven't found it publicly documented. See on Nokia Developer website for other Uri Schemes