apache / apache/cordova-plugin-inappbrowser

Error and Issue with window.open

Open
#403 1 comment 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

In readme, there is a line which means, window.open is overwritten from inAppBrowser

window.open = cordova.InAppBrowser.open;

How can I fix this in my Ionic App?

My Problem: I use Facebook Login Plugin, and this Plugin opens window.open -> but here it crashes and I got an Error.

How to avoid overwriting window.open with the InAppBrowser? There is no working example in the internet.

Contributor guide

Open the contributing guide

Research direction

Start with the README line that assigns window.open to cordova.InAppBrowser.open, then reproduce the Facebook Login Plugin crash in an Ionic app. Determine and document a working way to avoid that overwrite while preserving InAppBrowser behavior; the issue provides no named test or implementation file.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.