Yelp redirect to app store loop #783
Comments
(Kevin, re slack comments: nice intuition/sleuthing that Adjust was causing these problems! :) ) Clicking on the "Open in app" link takes us to http://app.adjust.com... which, on load, tries to load the In our case, we display the "Are you sure you want to open this?" dialog instead of instantly opening the fwiw, I copied the page source into a gist. I think two possible solutions are to:
To stay in sync with Chrome, I prefer 2 but I don't know what the side effects of this choice would be. For example, while trying to fix this bug, I discovered some people struggling with the web view randomly returning "about:blank" URLs (example). I feel like they likely misconfigured the WebView so I think it'll be fine though. |
Note that both options provide a sub-par experience on the Yelp page if the user cancels the prompt to open Yelp in the Play Store because the page loads to http://app.adjust.com... or about:blank so the user has to press back in order to get back to the Yelp page. We might be able to store the previous page and re-load it or something, but we run the risk of breaking other sites. We could special case this site, but that's never a good strategy. :P |
There are many ways to reproduce this behavior on the yelp website. The quickest is to do the following
Expected: warning that the play store is going to open
Actual: warning that the play store will open and a repeating attempt to open an external link that will eventually cause the OS to kill Focus. It is impossible to switch apps or try and kill Focus until this loop has run for a while and starts slowing down the phone.
Video of the behavior https://www.youtube.com/watch?v=4oUDw1oI2Lo
The text was updated successfully, but these errors were encountered: