-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] Open in app opens the Chrome browser #11148
Comments
Nightly with A-C version |
@rocketsroger I'm still able to reproduce this issue on the latest Nightly from 6/9 with Google Pixel 4 XL (10). |
@abodea Thanks for confirming. One question, what's the STR? I can't reproduce with my device. |
Nevermind. I think I've found a way to reproduce it. Thanks, |
Looks like the Pocket app is behaving a little different than other apps. Everything is behaving the same but the resolver comes back for |
Looks like a second start activity was started after pocket.app started 06-11 11:41:28.563 1495 3205 I ActivityTaskManager: START u0 {act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT,android.intent.category.BROWSABLE] dat=https://getpocket.com/... flg=0x10000000 cmp=com.ideashower.readitlater.pro/com.pocket.app.PocketUrlHandlerActivity} from uid 10277 |
During investigation, found a better way to open apps that have a different package name in the target activity. I will open a A-C issue to update it. Won't fix this issue though. |
When the latest change is merged. I'll be asking pocket team for help debugging the second part of the issue. |
Hey @rocketsroger We don't currently support opening that url (http://getpocket.com/explore) because the base "explore" feed doesn't appear in the app (only Discover), so the Pocket app forwards the url to the default browser instead. Explore topics are an example of urls that will work with the Fenix "Open in app" button: http://getpocket.com/explore/self-improvement http://getpocket.com/explore/politics Topics appear in the app as bubbles at the top of the Discover tab, but use the explore feed. |
@herbig thanks for the confirmation. Looks like the best solution is for Fenix / A-C to add a url blacklist so "Open in app" will not be available for the http://getpocket.com/explore? |
@rocketsroger That makes sense. Thank you! |
Maybe blacklisting common browsers makes sense? Is there any value in open in app for the browser -> browser use case? Share would be the way for users to open a page with another browser. |
We already do. A-C detects all browsers and filter them out when sending explicit intents. In this case the intent was opened in a browser because getpocket app rejected the intent causing it to be opened by a browser. |
@herbig tested a prototype and found other issues. URL such as https://getpocket.com/explore/item/there-s-a-wire-above-manhattan-that-you-ve-probably-never-noticed should be blacklisted as well. This means I'll have to add wildcard matching on a code path that is very performance critical. This path is executed every page load and redirect. |
Waiting on pocket team investigation result. I'll move this to backlog. |
Hey @rocketsroger ! I have a PR opened to address this. The plan is to open the app to Discover, or to the Pocket syndicated article in the Reader. I'll keep you posted when it will go out! |
That's great. Thanks for your help! |
Confirmed with latest pocket app version |
Yep, our fix was released as part of the |
@rocketsroger if Pocket is not installed please note that the |
I agree. However, this is a design decision of the site. If the site wants to redirect to an app or to the PlayStore when the app is not installed, they will have to either:
However, in pocket's case, it was just a normal redirect to another URL. We'll have to put in a very specific mapping from URL to app in order to figure out which app could be installed with which URL. Unfortunately, this mapping will have to be checked each time any URL is loaded. I definitely agree that maybe something like 3. can be implemented to move users to the pocket app. |
Verified as fixed on the latest Nightly 8/20 with Google Pixel 4 (11) and |
Thanks! I'll take a look at the other one. |
Steps to reproduce
-Open pocket top articles from top sites
-In the browser menu, tap on "open in app"
Expected behavior
Either not seeing an "open in app" option OR opening the Pocket app.
Actual behavior
-Opens the same page in Chrome
Device information
I was able to reproduce this after clearing cache for all 3 apps (Fenix, Chrome, pocket) as well.
UNITO-UNDERSCORE!20200602-115153!
UNITO-UNDERSCORE!20200602-115206!
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: