xsolla / paystation-embed

Xsolla PayStation Widget JS SDK
http://developers.xsolla.com/
MIT License
28 stars 17 forks source link

Xsolla fails to open on Iphone 11 #21

Open angelsantosb opened 3 years ago

angelsantosb commented 3 years ago

image

image

TypeError open(embed/paystation/1.2.1/src/childwindow)

null is not an object (evaluating 'this.childWindow.focus')

Kangsi commented 2 years ago

I have the same problem. It seems that window.open return null on iOS devices. This happens only when Block Pop-ups is enabled in the Safari settings.

Any update on this issue?

Deirel commented 2 years ago

I faced the same problem, any updates?

gazaret commented 2 years ago

Hi @Deirel, have you opened PS in a browser or in a webview?

Deirel commented 2 years ago

Hi @gazaret, in a mobile browser. I found that possible solution is to set iframeOnly option when initialize the widget, so Xsolla opens always on top of the game on the same page in iframe. But here's a problem, on mobile phones you can't close Xsolla then, because the iframe page doesn't have a close button and expands on whole screen.

I created the issue about that; https://github.com/xsolla/paystation-embed/issues/32#issue-1280646725