Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Opening WhatsApp from within my Unity app

Discussion in 'Android' started by stechmann, Jun 4, 2014.

  1. stechmann

    stechmann

    Joined:
    Feb 24, 2012
    Posts:
    32
    Hi,

    I am trying to pass text messages from within my Unity Android app
    to the different messenger apps installed on the device.

    Application.OpenURL("sms:")
    brings up the SMS messenger. Works fine.

    Application.OpenURL("mailto:")
    brings up the email client. Works fine.

    However,
    Application.OpenURL("whatsapp:")
    just closes the app.

    According to the official documentation from Whatsapp, this should work.
    But it doesnt. So I am stuck.

    Any ideas on what I need to do?

    Thanks
     
    Thincc likes this.
  2. stechmann

    stechmann

    Joined:
    Feb 24, 2012
    Posts:
    32
    It seems that this method of invocation only works on iOS.
     
  3. BalamKnight

    BalamKnight

    Joined:
    Jan 18, 2012
    Posts:
    3
    DoritoDog and ulissescad like this.
  4. ulissescad

    ulissescad

    Joined:
    Oct 31, 2015
    Posts:
    14
    thanks, this looks very useful, I will try later.
     
  5. AABID965

    AABID965

    Joined:
    Sep 30, 2022
    Posts:
    6
    I know your post is old but it works for me and Thanks :)