Post

Replies

Boosts

Views

Activity

Reply to SFSafariViewController will sometimes ignore redirects to non-https URLs if no user interaction occurs
I tried another approach, which was defining my protocol in my content security policy header: Content-Security-Policy: connect-src myapp:; script-src 'unsafe-inline' And then calling fetch() on "myapp://". Safari shows an error on this: Refused to connect to "myapp://rest of the url>" because it does not appear in the connect-src directive of the Content-Security-Policy I've tried Content-Security-Policy: connect-src myapp:; script-src 'unsafe-inline' Content-Security-Policy: connect-src myapp:; script-src 'unsafe-inline' Content-Security-Policy: connect-src myapp://; script-src 'unsafe-inline' Content-Security-Policy: connect-src myapp://*; script-src 'unsafe-inline' None of these work, but do produce different errors.
Topic: Safari & Web SubTopic: General Tags:
Mar ’24
Reply to Universal links: Open in "MyApp" doesn't launch my app
An interesting update. I just noticed that the bottom of my swcutil text output from sysdiagnose has a SINGLE entry in the SETTINGS section, and it looks like it is explicitly not allowing my app to launch. It says: =================================== SETTINGS =================================== { s = applinks, a =<my fully qualified app bundle id>, d = (null) }: { "com.apple.LaunchServices.enabled" = 0; } This is in contrast to a device where it is working correctly. On that device is have MANY entries in the SETTINGS section, including: -------------------------------------------------------------------------------- { s = applinks, a = <my fully qualified app bundle id>, d = (null) }: { "com.apple.LaunchServices.enabled" = 1; } So, I guess the question now is - how is this flag set - is this something done by user behaviour, or some other side effect? One for the DTS engineers I think!
Topic: App & System Services SubTopic: General Tags:
Apr ’25