Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

How to handle mailto without an email setup

Discussion in 'iOS and tvOS' started by Carwashh, Nov 2, 2020.

  1. Carwashh

    Carwashh

    Joined:
    Jul 28, 2012
    Posts:
    559
    Yo

    I'm working on an app atm, that has a 'Contact Support' button. When tapped, this button opens the users email compose with few things auto filled out.

    However, if the user doesn't have an email account setup on their device, tapping the button currently does nothing. Is there a way to detect this ? We have a URL to open instead as a fall back, so I'd like to know when the email fails to open and display the web site instead, handling it gracefully for the user.
     
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    255
    Carwashh likes this.
unityunity