Chrome Custom Tab close application after url scheme intent is triggered
Reported by
av.po...@gmail.com,
Jul 8 2016
|
|||||||
Issue descriptionUserAgent: 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
,
Jul 12 2016
,
Jul 12 2016
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?
,
Sep 23 2016
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>
,
Sep 25 2017
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
,
Jun 5 2018
,
Jun 7 2018
,
Sep 8
Bulk edit: Moving back into the untriaged pool, as I'm leaving the project. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by msrchandra@chromium.org
, Jul 12 2016