Hi,
We developed Native iOS application. Now trying to integrate Google pay.
I am trying to use Tutorial for integrating Google Pay API on website. So trying to load the Html code given at tutorial
inside WKWebView ( Tutorial link : https://developers.google.com/pay/api/web/guides/tutorial )
The html code given at above link works inside desktop Safari browser on my Mac laptop. It shows Buy with G Pay button in browser . But when same Html is loaded inside WKWebView, it fails to show GPay button.
It fails at Step-6 of above tutorial ( Determine readiness to pay with the Google Pay API )
I debugged and found that paymentsClient.isReadyToPay returns false.
Documentation says that above function i.e., isReadyToPay() determines if the Google Pay API is supported by the current device and browser ( in our case WKWebView) for specified payment methods.
It indicates that WKWebView can not be used for Google Pay API.
Queries :
1. Please let us know, whether we should look for some other way to implement Google Pay in iOS Native app.
Has anyone succeeded in implementing Google Pay in iOS Native app using WKWebView?
2. Looking at the success of Safari browser, we thought of using SFSafariViewController . But it needs http url . But how can we get it ? We can keep my html file in app sandbox, but it will give me sandbox url and not http url.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
We have 7 apis calls on our home screen . We want our home screen to get loaded faster .We have used NSURLSession and use delegate approach to receive data.
If maximumConcurrentOperations (of NSOperationQueue of NSURLSession) is not set to 1 then the dictionary (which gets filled with data in DidReceiveData callbacks) will get accessed by multiple concurrent tasks( operations) . Will dictionary usage get synchronized automatically ?