Android Chrome with opened tab cann't deal with intent which try to download apk
Reported by
kxf...@gmail.com,
Jan 11 2018
|
|||||
Issue descriptionExample URL: http://dldir1.qq.com/weixin/android/weixin661android1220_1.apk Steps to reproduce the problem: 1. Open Chrome and open a tab 2. Build a simple Android app, when a button is clicked, use below code to start the default browser Chrome: // the url can be any url which refer to a apk file Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://dldir1.qq.com/weixin/android/weixin661android1220_1.apk")); startActivity(browserIntent); 3. Chrome start, and a new tab seems to be created but closed quickly. What is the expected behavior? Chrome should open a tab and show a dialog waiting user to confirm to download apk from the url. What went wrong? Chrome with opened tab cann't deal with intent which try to download apk. Does it occur on multiple sites: Yes Is it a problem with a plugin? N/A Did this work before? N/A Does this work in other browsers? Yes Chrome version: 63.0.3239.111 Channel: stable OS Version: 8.1 Flash Version: If there's no opened tab in Chrome, Chrome can deal with the intent properly.
,
Jan 12 2018
,
Jan 12 2018
kxfchn@ -- Thanks for reporting the issue. Could you please share the sample APK file which could reproduce the issue. This would help us in further triaging the issue. Thanks in advance!
,
Jan 12 2018
@pnangunoori this is a sample apk.
,
Jan 12 2018
Thank you for providing more feedback. Adding requester "pnangunoori@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 16 2018
Tested the issue in Android and able to reproduce the issue. Similar behavior is observed since Chrome #55.0.2841.0 Prerequisites: Chrome browser should be launched and user is navigated to a website. Steps Followed: 1. Install the test application provided in the C#4. 2. Launch the application. 3. Tap on "OPEN BROWSER" button and select the Chrome browser. 4. Observed that, download is not initiated. However, if the user closes all tabs in the browser to be launched and then perform Step-3, download will be initiated. Can be observed in the screencast. Chrome versions tested: 55.0.2841.0, 59.0.3030.0, 63.0.3239.111(Stable), 65.0.3322.0(Canary) OS: Android 8 Android Devices: Pixel This seems to be a Non-Regression issue as same behavior is seen since M55. Untriaged for further input's on this issue. Please navigate to below link for log's and video-- go/chrome-androidlogs/801213 Thanks!
,
Dec 7
I just came across this issue myself so I can contribute with additional info. Reproduced on a Samsung S7 Edge (SM-G935F) running Android 8.0.0, and a Pixel 2 running Android 9 = Samsung S7 Edge = Chrome version tested: 71.0.3578.83 OS: Android 8 (8.0.0) Android Devices: Samsung S7 Edge (SM-G935F) = Pixel 2 = Chrome version tested: 70.0.3538.110 OS: Android 9.0.0 Android Devices: Pixel 2 Additional: If you enable "Ask where to save files" you will see a dialog asking user where to save the file, but after confirming the same behaviour applies (download does not start). |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by kxf...@gmail.com
, Jan 11 2018