apache / apache/cordova-plugin-inappbrowser

Links with target _blank are not working on iOS inside inAppBrowser when wkwebview is enabled

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

Description

Links with target _blank are not working on iOS when they are opened from the inAppBrowser and wkwebview is enabled. This is also an issue with a form element which has target _blank. Nothing happens when you tap link or submit form. Links without _blank are working correctly.

Tested with the master version 3.1.0-dev and setting `usewkwebview=yes`

Happens on various iPhones and simulator.

Here is the repo for minimal reproduction of the issue:
https://github.com/teroauralinna/cordova-iab-wkwebview

In the issue demo, click **Open inAppBrowser** and then **Link with _blank doesn't work!** => nothing happens

Contributor guide

Open the contributing guide

Research direction

Start by running the linked minimal reproduction with the master 3.1.0-dev version and `usewkwebview=yes`. Compare the inAppBrowser behavior for links and form elements with `target=_blank` against links without that target, and trace the plugin's iOS WKWebView handling. Done means both links and forms with `target=_blank` open as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile
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.