Enable Popups in MAUI Webview on iOS (for Google Pay integration in iOS) #31664
Unanswered
mobilewares
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Niall, I do not know. However, I have asked CoPilot and he gave me some good answer. Did you try asking and implementing AI solution? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
For a current project which is targeting MAUI NET9 - we are using a 3rd party payment system exposed via a website into our App. This is using the MAUI WebView control which is hosted inside one of the pages inside our App.
We have been unable to get Google Pay working on the iOS version however - after the user has clicked the 'Pay with Google Pay' button they are taken to the pay.google.com website where they sign in. After returning from this, it is getting blocked at the point where I think it's attempting to show the popup for selecting the credit card. (Note that this scenario is working fine on same device if simply using the standalone Safari browser).
In the browser we see this message :
I have tried setting the Handler to switch on the config options and set a user agent - but it's not helping
`
Microsoft.Maui.Handlers.WebViewHandler.PlatformViewFactory = (handler) =>
{
WKWebViewConfiguration config = MauiWKWebView.CreateConfiguration();
try
{
};
`
Just wondering if anyone out there has managed to get this scenario working at all / figured out how to enable the Popups? Note that native Google Pay integration is not currently an option for this project unfortunately.
Also - just in case anyone needs it - we have successfully got Google Pay working in this scenario (via WebView) on Android devices with full Google Pay Wallet integration working. This required a few things to be enabled via the AndroidX.WebKit components and the manifest. Happy to share this here if anyone is interested.
thanks
Niall
Beta Was this translation helpful? Give feedback.
All reactions