question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support multi view instances like a browser

See original GitHub issue

Bug description: We are trying to make a simple browser using the module but I found some problems on iOS:

  • shouldStartLoadForRequest use a single lock condition. If 2 RNCWebview instances call the method, the previous call will always get YES with a warning “Did not receive response to shouldStartLoad in time, defaulting to YES”
  • createWebViewWithConfiguration will work incorrect in sites that need google or github login like https://app.gitbook.com/login. In the site, a parent window wants to create a child window (by window.open) for authentication, and then close it after login success (by window.close).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
CoreyBovalinacommented, Mar 25, 2020

@binhndicts is there an android solution to this? I have a link that has attribute target=“_blank” and it doesn’t work right in android, but fine in iOS.

1reaction
tmaly1980commented, Mar 15, 2020

@binhndicts Did you ever find a solution? I’d like to have a more universal fix for window.open/close as well. I can’t control third party sites that use popups (ie facebook login), and I don’t always have control over timing - sometimes window.open/close is put in <head>, which runs before any injected javascript is added. Ideally there’d be a way to intercept window.open/close calls with custom event handlers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web-Based Multi-Screen Apps Including Drag & Drop - Medium
Drag & drop across multiple browser windows is probably the most difficult part. Imagine an app running on 2 screens (one fullscreen browser...
Read more >
Support multi view instances like a browser #1111 - GitHub
We are trying to make a simple browser using the module but I found some problems on iOS: shouldStartLoadForRequest use a single lock...
Read more >
Split Screen Browser - Simple to Use | Stackbroswer.com
As long as it can be accessed online and needs credentials, you can use Stack to open multiple accounts of it. Needless to...
Read more >
The Multi-Screen Window Placement API allows you to ...
The Multi-Screen Window Placement API allows you to enumerate the displays connected to your machine and to place windows on specific ...
Read more >
Investigating Multi-Window Browser Applications
This works in Chrome, Firefox and Edge. window. open( "https://www.example.com", "popup-1", "noopener,top=100,left=100,width=400,height=400" ); ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found