New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 626553 link

Starred by 5 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Chrome Custom Tab close application after url scheme intent is triggered

Reported by av.po...@gmail.com, Jul 8 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Steps to reproduce the problem:
1. Authenticate through a OpenId Connect code flow with Chrome custom tabs and redirect the user to the app thanks to a custom url scheme intent
2. Launch the process again while the session is still up
3. The intent is triggered but it сloses the application. If application would be opened again then specified url scheme intent would be start appropriate Activity.

What is the expected behavior?
Triggered url scheme intent should start appropriate  activity. 
It works correctly in Google Chrome browser but not works in Chrome Custom Tab.

What went wrong?
I need to authenticate the users through a oauth2 process using chrome custom tabs. The user is sent to the authentication form then types is login/password. Then it is redirected to a url like myapp://something. An intent is then triggered and the user is sent back to the app.

The process is working well at first launch when the user is logging in through the authentication form. However, if I try to do it again (session cookie is stored already) intent is triggered but my application is closed together with closing custom tab.

Did this work before? N/A 

Chrome version: 51.0.2704.106  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 22.0 r0

Google support library version is 23.4.0
 
Labels: Te-NeedsFurtherTriage
Components: UI>Browser>Mobile>CustomTabs
Labels: -OS-Linux OS-Android

Comment 3 by yus...@chromium.org, Jul 12 2016

Cc: ian...@chromium.org yus...@chromium.org
Status: Available (was: Unconfirmed)
Thanks for reporting the issue!

The application you are using to launch the custom tab does have an intent filter that says it handles the custom url scheme, right?

Do you see the intent being launched from logcat (there should be an ActivityManager entry with your app's package name)? And then do you see anything about your app being displayed?

I am trying to figure out at which point your app is being closed. It might be a bad interaction with a task flag you are using and how the custom tab sits on top of the launching app. Do you mind pasting the Activity entry for your main Activity in your AndroidManifest.xml?
I have the same issue. I don't see anything either way in the log file
Here's my activity entry 
        <activity
            android:name="com.t2.rest.ChromeTabLaunchActivity"
            android:label="ChromeTabLaunchActivity"
            android:launchMode="singleTask"

            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>

                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:scheme="t2gspan" android:host="logincallback" />
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
Project Member

Comment 5 by sheriffbot@chromium.org, Sep 25 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: -yus...@chromium.org
Labels: -TE-NeedsFurtherTriage android-fe-triaged
Owner: yus...@chromium.org
Status: Assigned (was: Untriaged)
Owner: bauerb@chromium.org
Owner: ----
Status: Untriaged (was: Assigned)
Bulk edit: Moving back into the untriaged pool, as I'm leaving the project.

Sign in to add a comment