apache / apache/cordova-plugin-inappbrowser

_system does not work on android 10

Open
#593 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
Chrome opens when using **_system**, but does not navigate to the URL provided.
Chrome opens when using **_blank**, but does not navigate to the URL. Upon returning to the app, the webview in open.

### What is expected to happen?
Chrome app should open the URL provided when using _system, and it should also open the webview without leaving the app when using _blank.

### What does actually happen?
Chrome opens when using **_system**, but does not navigate to the URL provided.
Chrome opens when using **_blank**, but does not navigate to the URL. Upon returning to the app, the webview in open.

## Information
The following plugin will actually open the webview: https://www.npmjs.com/package/cordova-plugin-browsertab

The plugin does not appear to have navigation though, so not useful for my purposes.

### Command or Code

window.open(link, '_system');
cordova.InAppBrowser.open(link);
cordova.InAppBrowser.open(link, '_blank','location=yes');
cordova.InAppBrowser.open(link, '_system','location=yes');

### Environment, Platform, Device

android 10 on pixel 4

### Version information

cordova-plugin-inappbrowser versions 1.7 through development (tried them all)
phonegap v9.0.0

I'm using phonegap cli to prepare the project, and then using Android Studio to build the apk.

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported window.open(link, '_system') and cordova.InAppBrowser.open(link, '_blank'/'_system') calls on Android 10 with a Pixel 4. Compare how each target is handled when Chrome opens, using the plugin's Android implementation and its existing tests if available. Done means _system navigates Chrome to the supplied URL and _blank opens the webview with that URL without leaving the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.