Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Mitigate Safari Warning "Do you want to allow this page to open XYZ"

Tags:

macos

safari

I am developing an application in Objective-C and Go. So far, everything is working out quite well - except for a few hiccups.

What I want to know is: Is it possible to mitigate the warning Safari gives me when clicking on a link, which opens an installed application with a custom URL scheme?

My application has a custom scheme. Let's say it is XYZ. When I click on a link, such as

xyz://dosomething?cool=yes+please

I get the warning

Do you want to allow this page to open XYZ?

Any way to not have this prompt come up every time?

like image 250
Daniel L. Avatar asked Jan 12 '17 18:01

Daniel L.


1 Answers

That's a new security policy of Safari (in 10.12.2+), at the moment there is no way to go around it. Maybe in a future Safari update they'll add an option to "Always allow" or a preference setting to disable it.

If you google it you'll find tons of people with this problem since using URL schemes to launch external apps is a quite common approach... Very popular applications like Transmission use it.

like image 159
gabry Avatar answered Sep 30 '22 07:09

gabry