-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clicking a link in Twitter doesn't always show the website #558
Comments
Looks like when the issue happens we are getting a indirect intent to The weird thing is that |
@jonalmeida and I spent the day debugging this issue 🙃 but It was fun :) What we found is the following: 1. The Twitter app supports custom tabs and its trying to open the links as custom tabs e.g they call The weird part is that they are only including the extra flag, when the default browser is Chrome or FireFox . We could confirm the issue because we changed locally the 2. From what I've saw, the issue is happening because the only place where we are handling intents is When the issue happens the intent from Twitter is never hitting I could confirm that because, I added logs statements in both I suppose this is happening as a side effect of a non-standard implementation . With custom tabs I could replicate the issue. Even @jonalmeida and I could replicate the issue on Focus. I believe the ✅ These are logs from My logs get printed and the break points in both classes get hit ✅
🔴 When the issue happens I get these logs from It says that only class called was
A video when the issue happens and we press a different link from the one that caused the issue. it looks like |
@pocmo as you have more experience with custom tabs what do you think? What can we do from here? To mitigate the issue, we could add a double check condition on |
STR:
|
There are a couple of linked issues here that are related and can possibly make the situation better if fixed. |
To clarify, the calling app doesn't set this extra, the support library does this when a CustomTab intent is created and sent. |
I've reached out to a Twitter Android dev about this issue! :) |
@ekager Did you get a response from the Twitter Android dev? :) |
To update this ticket: our custom tabs support is in a much better state now so we aren't seeing the many of the original side-effects, but it would be nice to not be filtered out of Custom Tab support from Twitter - we handle those links as regular ones. |
The ticket has been assigned on their end and I will update when there is more information |
Twitter 8.4.0-alpha.120 has the fix to use the default browser for invoking Custom Tabs. We can close this ticket now! 👏 🎉 |
Steps to reproduce
Expected behavior
Actual behavior
Device information
These STR aren't very accurate though because it seems to happen if r-b is recently opened and in-memory for it to be reproducible. Once in that state, I can see the issue consistently.
Once I swipe away the app and try it again, the link loads without any hitches.
Below is log when a link in Twitter is clicked:
And after r-b is swiped away, the expected logs:
The text was updated successfully, but these errors were encountered: