I have an iOS app (and Android, which works fine) where I use a WebView to load a specific URL.
It works if I use "https://google.com" but not if I use the required one which is
https://sandbox.nuapay.com/tpp-ui/redirect?userInterfacePaymentId=1234567890
I have tried adding various settings for NSAppTransportSecurity but I can't find a clear explanation of what the options are or what they specifically do.
I tried this, but it didn't seem to help:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>nuapay.com</key>
<dict>
<key>NSIncludesSubdomains</key>
<true />
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true />
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.2</string>
</dict>
</dict>
</dict>
Is there a way, when debugging, to see what the problem is?
Edit:
I added a handler for WebView.Navigated and the Status is "Success", so it seems to be a problem with the content just not showing in WebView.
Edit 2;
OK, so I added the following to the WebView definition:
WidthRequest="500"
HeightRequest="1000"
MinimumWidthRequest="1000"
MinimumHeightRequest="1000"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand"
And now I can see the content ... however the WebView is now way too big, so I can only see the edge. How do I make the WebView size itself to the full space available in the App - and make the content size itself to the size of the WebView?!