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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Application.OpenURL not working on OSX

Discussion in 'Editor & General Support' started by ev3d, Aug 20, 2014.

  1. ev3d

    ev3d

    Joined:
    Apr 19, 2013
    Posts:
    327
    I build to OSX and the call to
    Application.OpenURL("https://www.paypal.com");
    literally does nothing... It does this on my machine and a few friends machines as well. I have not tested on other OS's but it works fine in the editor..
     
  2. MvD

    MvD

    Joined:
    Oct 26, 2010
    Posts:
    13
    Yup, we have the same problem on OSX. It works fine on Windows, iOS and Android.

    The Unity documentation states:

    Opens the url in a browser. In the editor or standalone player this will open a new page in the default browser with the url. It will also bring the browser application to the front.

    Guess that last bit isn't possible on OSX or doesn't work
     
  3. Zewde

    Zewde

    Joined:
    Nov 30, 2015
    Posts:
    3
    Solution:
    - If you had spaces in your link, it doesn't open the link on iOS and OSX, replace the spaces with %20.
    - If it still doesn't work and you have special characters in your link, change the spacial characters with their unicode number.
     
    Jonsi and Kingtem like this.
  4. AdrianMesa

    AdrianMesa

    Joined:
    Oct 8, 2021
    Posts:
    10