I played around with them yesterday on Firebase. Bearing in mind that I have very little knowledge of coding, it was surprisingly easy. I was wondering why that won’t work? Happy to hear because it might affect me in the future.
N.B. As an aside, one MASSIVE problem I ran into was getting stuck in some sort of loop on iOS Safari (Android and Chrome seemed to work fine), where you couldn’t reopen Safari without the redirect being pushed at you - ended up having to close it while disconnected from the internet.
I think URLgenius automatically fixes that but it’s beyond my knowledge with Firebase. (If anyone knows a fix, feel free to shout!)
For me it works very well with an own tracking/redirect switch.
Works in JS or PHP.
For Instagram/Facebook that flow works very well for me:
First off all Check the Browser User Agent.
if(strpos($browser, ‘Instagram’) == true OR strpos($browser, ‘FBAV’) == true )
If that matches with mobile traffic you are in the inApp Browser.
Then check if its Android or iOS. Easy to check for example with mobile_detect.php (github)
If Android --> make a 301 redirect to the chrome intent url. The links opens than in Chrome Browser or better in the installed App. For Example if you use Facebook/Instagram/twitter/ebay/Amazon link or so…
If iOS you could do nearly the same, but the user needs to click one time in the inApp Browser. Seems this is an Apple security thing. I didn’t get rid of that click till now.
For Pinterest inApp Browser i tried a lot of things to get out of that Pinterest Browser webview thing… till now nothing works…
How does that Firebase solution work? Maybe it works for Pinterest too?
So the Firebase Dynamic Link worked perfectly with Android using one of their domain links (couldn’t be bothered to set up my custom domain as a dynamic link for this).
When I went to test it on an iPhone (Safari on iOS), it would redirect the first time - opening the url web page, then asking if you want to view it in the app.
But then, every time you opened Safari afterwards, it would load that url as the last page you visited and you were stuck in that loop unable to close that page because you were being redirected to the app.