Closed midrpostcz closed 2 years ago
Well, I used Browser instead of WebView and it works fine!
Hi Michal, Great to hear you could be able to solve it.
I got the recommendation to use SFSafariViewController on Apple and Chrome Custom Tabs on Android.
Ahoj týme!
Vytvořit Chrome Custom Tabs v Xamarinu se mi nepodařilo, ale mám zde info pro ty, kterým by to mohlo pomoci:
WebView jsem tehdy používal jako tag v XAML souboru a vyvolávalo to výše popisovaný problém.
Dnes jsem ale vytvořil instanci WebView, předal ji jako Content nově vytvořené ContentPage a platební brána funguje skvěle
na obou platformách (Android, iOS) !
Michal
Hi Team I am developing a mobile app in C#, Xamarin framework. After I retrieve gw_url and open it on my mobile phone in WebView object, G▶ would correctly appear together with the comment "Brána se načítá ..." winking from time to time and blue activity indicator would sometimes move left, sometimes right, sometimes it circles.
At the same time I get (in Visual Studio) this output:
[chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 377.70ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 206.00ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 242.40ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 263.90ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 241.70ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 304.40ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [zygote64] Compiler allocated 6MB to compile void android.view.ViewRootImpl.performTraversals() [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 375.60ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 997.50ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [WARNING:spdy_session.cc(3502)] Received HEADERS for invalid stream 57 [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 1178.10ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 215.00ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 356.20ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 207.80ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 576.50ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 176.00ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 528.90ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 129.90ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 109.90ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 260.80ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 93.20ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [WARNING:spdy_session.cc(3502)] Received HEADERS for invalid stream 99 [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 127.40ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 109.50ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 407.10ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 98.90ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 93.10ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 116.10ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] frontendLogMessage [object Object] 172.60ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 118.70ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 160.30ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 117.80ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 103.20ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 127.40ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 128.80ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 114.70ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 111.00ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 169.30ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [INFO:CONSOLE(50)] "[object Object] getTheme [object Object] 150.10ms", source: https://gw.sandbox.gopay.com/gp-gw/js/_gw-ui/js/bundle.app.js?_ac=2210261100 (50) [chromium] [WARNING:spdy_session.cc(3502)] Received HEADERS for invalid stream 185
I checked content of the WARNING (Received HEADERS for invalid stream) in Chromium Code Search page and found this info:
// NOTE: it may just be that the stream was cancelled. LOG(WARNING) << "Received HEADERS for invalid stream "
It seems it is communicating but after fiew seconds the stream is cancelled.
Please, do you have any idea how to solve it?
Thank you in advance for any help on this issue!
Michal