react-native-inappbrowser icon indicating copy to clipboard operation
react-native-inappbrowser copied to clipboard

Blank SFSafariViewController content

Open SudoPlz opened this issue 4 years ago • 2 comments

Which platform(s) does your issue occur on?

  • iOS
  • iOS version 12.4
  • Both simulator and device

Please, provide the following version numbers that your issue occurs with:

  • CLI: 4.13.1
  • Plugin(s): "react-native-inappbrowser-reborn": "3.5.1"

Please, tell us how to recreate the issue in as much detail as possible.

Not entirely sure WHEN that happens but there's a thread about it here https://stackoverflow.com/questions/46439142/sfsafariviewcontroller-blank-in-ios-11-xcode-9-0

For me this happened whenever I tried to open (not openAuth) a url that looked like https://subdomain.domain.com/path/path2?queryParam=true

SudoPlz avatar Dec 12 '20 00:12 SudoPlz

just pushed a fix for that ^

SudoPlz avatar Dec 12 '20 00:12 SudoPlz

I can confirm the issue: on iOS <= 12.5, the first presentation works fine but the second time you try to open the inappbrowser you get a blank page/interface, as you can see here:

Schermata 2021-02-24 alle 12 21 12

After I clear all Safari cache/cookies, the page renderes properly for one time before getting stuck again.

Note: using openAuth and setting ephemeralWebSession: true prevents the problem. I don't need an auth flow though, so it is not a valid solution

gbalduzzi avatar Feb 24 '21 11:02 gbalduzzi