apache / apache/cordova-plugin-inappbrowser

Open other app with deeplink isn's in new window & can't back cur app

Open
#480 5 comments 0 reactions 0 assignees View on GitHub
platform: android support
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report
## Problem
I have 2 app using deeplink :
App1 : com.te.testApp1://host1.com
App2 : com.et.testApp2://host2.com

from App1 : use InAppBrowser to open App2 with link com.et.testApp2://host2.com

### What is expected to happen?
App1 will open App2 in new window and keep in other window
Can back to App1
Have 2 window

### What does actually happen?
App1 is overwrite by App2 and can't back to App1
Can't back to App1
Have 1 window

but from App1 : use InAppBrowser to open "fb://profile" then open in other app is Facebook and can back to App1

## Information
### Command or Code
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
...
(new InAppBrowser).open("com.et.testApp2://host2.com", "_system");

### Environment, Platform, Device
android-targetSdkVersion = 23
Android device 6.0.1

### Version information
ionic 4
angular 7
cordova-android 8
@ionic-native/deeplinks ^5.6.0
@ionic-native/in-app-browser ^5.6.0

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

Contributor guide

Open the contributing guide

Research direction

Start at the InAppBrowser.open entry point with the "_system" target and reproduce the custom deeplink flow on Android 6.0.1 using the reported Cordova, Ionic, and plugin versions. Compare it with the working "fb://profile" flow and verify that App2 opens separately while App1 remains available for back navigation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.