I am getting an error on one of device that "Only possible from Safari" while i am opening the diawi generated link in safari. i have 12 devices registered in my developer account. Diawi generated link is working fine in 11 out of 12 devices.I have cross checked UDID, povisioning profile, build everything that is possible to resolve this issue. Enclosing a screenshot-
Image Link
If you're using IOS 13+, tap the 'aA' button on the left of the address bar and select request mobile website option.
If not please check following things,
Open Settings
Navigate to Safari > Advanced
Enable Web Inspector
Enable JavaScript
Switch back to Safari and load a web page
You need to run the page in mobile mode.
for iOS 13+, Tap the AA (left-hand side of Diawi address) and Request to Mobile Website.
You might be getting this error due to Javascript being disabled in Safari.
Navigate to Settings > Safari > Advanced
If Javascript is disabled , Enable that and reload the link in Safari.
else try disabling and enabling javascript.
Related
Im using firebase dynamic link to open the mobile application (If already installed) or to redirect user to Playstore or app store.
In iOS mobile , I pasted the link in notes / messaging apps and while clicking the link it Opens the safari browser and it shows the Preview page. Upon clicking the "Open" button in preview page , it says "Safari cannot open the page because the address is invalid".
Can you please help me with this?
Note : In same iOS device , when I set the default browser to chrome and then clicking the Link opens the app correctly.
Finally I am able to resolve the issue.
The initial step is to create a universal link in Firebase console.
Once the universal link is created , we have to do following changes in XCode:
Enable associated domains under capablities
Include URL types
Must verify your Team ID that you would have provided in firebase console.
Once the universal link setup is completed in Xcode, we can do build and run and check the working of Universal link.
i.e. clicking the link should open the app (provided app is already installed).
and it should not open the safari browser.
If clicking the link opens safari browser , then there is a problem with the Universal link setup.
The below tutorial is very useful:
https://youtu.be/KLBjAg6HvG0
This is sudip here, we've implemented branchio in our app and in website. We're facing an issue in ios 10.3, whenever we open link in ios 10.3 it shows error "safari cannot open the page, the address is invalid", and in background we have our banner which says get the app.
if we click on cancel on confirmation in safari during popup "Do you want to open this in app", it starts showing "safari cannot open the page, the address is invalid"
how can we resolve the above issue
Product Category Links Redirection
Settings for used in link settings of branch dashboard
URI Scheme Deep Link Mode : Intelligent,
Enabled Universal & App Links for both iOS & Android,
We've tested in:
Android - Opened links from hangout, working smoothly
IPhone CE , iOS version 10.3.3 : Opened links from hangout, using safari browser, shows error "Safari cannot open the page"
IPhone SE , iOS version 10.3.3 : Opened links from hangout, using safari browser, shows error "Safari cannot open the page"
Link(s) for Testing
https://link.onference.in/ZsSH9R6uAU
First step is please go to settings-> safari -> Clear History and website data and the check the link, if its not working then you need to check the settings in info.plist and Associated Domains
This alerts usually happens for users who do not have the app on their device when we try to use the iOS URI scheme because the universal link for your app fails. To give better assistance, can you please validate if your universal link setting in your iOS app is correct by our validation tool and give us your result? Also, you can find common issues that cause universal links to fail here.
Please do reach out at integrations#branch.io if you have any further questions!
I just encountered a very weird behaviour with Firebase dynamic links.
It works perfectly on all of our test devices except for one.
This specific device is an iPhone-x, and the account was restored via iTunes (Not sure if this info is relevant, but i'm trying to give a full picture).
Our app is installed on this device from the app store (also tried deleting and reinstalling), but when trying to open a dynamic link it opens Safari instead, there we have the "open" button that opens the app store page of this app.
When trying to long tap on the link as suggested by developers that experienced the same issue, we have only one button that says "Open" which opens Safari again. I would expect that when the app is installed we would have two options:
1. "Open in Safari"
2. "Open in [App]"
Has anyone experienced this issue before? Anyone has any idea how to solve this?
The overall diagnoses here is that Universal Linking is not configured properly on the device. If Universal Links works on all other devices, then it is probably the case that the AASA file is not being downloaded properly. iOS 11.2 has had issues with this recently.
Check device logs
I suggest that you check the device logs when installing the application to see if the AASA file is being downloaded properly.
1) Delete your app and plug in the device to your computer
2) Open up Xcode and navigate to Window > Devices & Simulators
3) Select the device in the left-hand menu
4) In the bottom of the window you should see a triangle in a box. Clicking this will bring up the device logs.
5) Use a cmd-f to search for applinks and if your app downloaded the AASA correctly. You should see something like
Added service 'applinks', appID 'RXXXXXXXP.io.branch.Branchsters', domain 'branchster.app.link'
If this is not the case, then it looks like you AASA file is not being downloaded and you may need to delete the app, restart your phone, and try again.
I am trying to build deep linking feature into my app. I did all the necessary set up for deep linking to work like, enabling associated domains in my app, adding apple-app-site-association to the root directory of my server, and I am serving a valid apple-app-site-association over https, I also validated my apple-app-site-association using this tool Validate your apple-app-site-association.
After doing everything right, I tested the deep linking feature on my iPad and it worked as expected. But when I tried to do the same on my iPhone it doesn't work, it always took me to safari. I tried it on 6s device, I reinstalled the app, I cleared Safari website data & cleared the history. Also updated the iPhone & iPad to iOS 9.3.5. The updating the OS didn't change a thing.
iPad still continue to work with deeplink URLs just like it did while it was on 9.3.4. iPhone still opened the link in safari.
Please give me some pointers on how to workaround this issue, I think this might be an apple bug but again I don't understand how it can work on iPad which is running same software as iPhone. Any help or guidelines is much appreciated.
Thanks.
I was able to fix this issue and this is one of the annoying issue that I have come across, because it doesn't say what is going wrong.
Fix: Whenever the iOS opens your link in safari, you need to pull down the webpage in safari and there you'll see a banner saying that, open it in the app. Once you click on that banner your future links will start opening the app instead of opening it in the safari browser.
There was no error whatsoever and there was no indication why the link was getting opened I am pretty sure that, iOS didn't download the apple-app-site-association whenever I installed the app.
Also note that the banner in the webpage will not be visible whenever your link opens up in safari, you need to pull down the webpage and then the banner will become visible and if you click on open in app banner, it will start opening the links in app.
If in future if you select to view the link in safari by clicking on context menu which appears on right hand side of the status bar, which will be saying "Open in [your app name]" in safari, the links in future will open in safari instead of app, and again if the banner open in app isn't visible, you have to pull down the webpage to see that banner.
HTH.
In iOS 13, similar problem of direct links not opening the app instead it open the safari website directly.
Fixed by updated the below safari setting...
Settings > Safari > Request Desktop Website > All websites > Switch Off
I was facing the same issue in iOS 12, on one device the link redirected to my app and on another device it was always redirecting to Safari and pressing the link on the Notes app was only allowing me to open it on Safari.
What I believe happened was that I pasted the URL in the browser and clicked Go, as I thought it would redirect to my app. No matter what I did ( reinstalling the app, restarting the device, ... ) the results were always the same, redirecting to Safari.
What helped me was deleting the cached data for my domain ( Settings -> Safari -> Advanced -> Website Data -> Swipe and delete the data for your domain ).
After that, everything started working.
I believe this is a bug with iOS Simulator,
In my case it was occurred when I entered an invalid address (with multiple spaces) for example:
Valid One: myApp://order/10003101
Invalid One: myApp://order/1003131
It stopped working even with Valid One and the solution was to clear Safari Website Data:
Go to Settings/Safari -> Clear History and Webstie Data
Device: iPhone 12 Pro Max
iOS: 14.5
Xcode: 12.5
Recently we found problems that sometimes our webpage crashes on iOS. Its happening both in Chrome and Safari. Has anyone idea how to debug it, or why its happens ?
Its hard to reproduce (actually on some phone we were not able to). So we are trying turning off some components from the page. The page contains lot of HTML (20-100 pages) and some bit heavy javascript components, such as maps, street view or even graphs.
Thanks for any idea or hint. Thanks!
You can debug the webpage, when it is loading on your mobile browser(Safari).
Follow the below steps:
Connect your iOS device to MAC--> open Safari on MAC --> In the menu bar you can see Develop option --> On selecting the develop option it will show all the connected devices--> keep the menu popup open and browse your webpage on the connected iOS device.
Note : If your device doesn't show up in the develop option please enable it in iOS device settings --> Safari --> advanced --> Web Inspector.