I'm integrating an app with Branch.io and encountered an issue in Safari (I've tested this on iOS 11, but the issue might be appearing on other versions as well).
Basically, if I have my app installed and open a quick link in either Safari or Chrome, everything works fine and I get a prompt to open the link in the app. However, if I uninstall the app and tap on the link in Safari I get the following message:
When I tap the OK button, I get a prompt to open the Appstore which is the desired behaviour. Is there any way to prevent the "Safari cannot open the page because the address is invalid" message from appearing? I've tried opening the link in Chrome without the app installed and everything works fine there.
I've used the official setup guide and entered my URI Scheme but disabled Universal Links because I'm handling those myself. Could this be causing the issue?
When you get the 'Safari cannot open the page because the address is invalid' error, there might be some minor issue with the page. To refresh the page on the Safari browser, you can drag the page down and release it. Also, you can tap the refresh button to reload the page.
Safari Can't Open the Page Error might occur due to many reasons such as a bad internet connection, damaged cookies, URL doesn't exist, etc, or it might be due to a server issue.
I too was having this problem but I found that following the instructions in the Test section of the Branch Test App I was able to open the app without the Safari warning.
https://github.com/BranchMetrics/ios-branch-deep-linking/tree/master/Branch-TestBed-Swift#test
1. If the app was installed on the test device already: * Delete the app from the device * Clear Safari web content, history and cookies (Settings > Safari > Clear History and Website Data) * Reset the device's IDFA (Settings > Privacy > Advertising > Reset Advertising Identifier...) 2. Create a Marketing link from the Branch dashboard 3. Paste the link into Notes on an iPhone 4. Tap the link - you will get redirected to the web page 5. ...
Aaron from Branch.io here
You are probably getting this error because Branch is attempting to launch your app via URI schemes when the app is not installed. Starting from iOS 9.2, Apple no longer officially supports URI schemes for deep linking, and developers are strongly advised to implement Universal Links in order to get equivalent functionality on iOS.
Specifically, there are significant drawbacks to custom URI schemes, most notably the inability to easily handle these two situations:
For this reason, we recommend you enable Universal links in your Branch Dashboard. All you need to do is provide your bundle ID and app prefix, and Branch will host the AASA file for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With