applePayAPIEnabled property
Set to true
to enable Apple Pay API for the WebView
at its first page load or on the next page load (using PlatformInAppWebViewController.setOptions). The default value is false
.
IMPORTANT NOTE: As written in the official Safari 13 Release Notes,
it won't work if any script injection APIs are used (such as PlatformInAppWebViewController.evaluateJavascript or UserScript).
So, when this attribute is true
, all the methods, options, and events implemented using JavaScript won't be called or won't do anything and the result will always be null
.
Methods affected:
- PlatformInAppWebViewController.addUserScript
- PlatformInAppWebViewController.addUserScripts
- PlatformInAppWebViewController.removeUserScript
- PlatformInAppWebViewController.removeUserScripts
- PlatformInAppWebViewController.removeAllUserScripts
- PlatformInAppWebViewController.evaluateJavascript
- PlatformInAppWebViewController.callAsyncJavaScript
- PlatformInAppWebViewController.injectJavascriptFileFromUrl
- PlatformInAppWebViewController.injectJavascriptFileFromAsset
- PlatformInAppWebViewController.injectCSSCode
- PlatformInAppWebViewController.injectCSSFileFromUrl
- PlatformInAppWebViewController.injectCSSFileFromAsset
- PlatformInAppWebViewController.findAllAsync
- PlatformInAppWebViewController.findNext
- PlatformInAppWebViewController.clearMatches
- PlatformInAppWebViewController.pauseTimers
- PlatformInAppWebViewController.getSelectedText
- PlatformInAppWebViewController.getHitTestResult
- PlatformInAppWebViewController.requestFocusNodeHref
- PlatformInAppWebViewController.requestImageRef
- PlatformInAppWebViewController.postWebMessage
- PlatformInAppWebViewController.createWebMessageChannel
- PlatformInAppWebViewController.addWebMessageListener
Also, on MacOS:
- PlatformInAppWebViewController.getScrollX
- PlatformInAppWebViewController.getScrollY
- PlatformInAppWebViewController.scrollTo
- PlatformInAppWebViewController.scrollBy
- PlatformInAppWebViewController.getContentHeight
- PlatformInAppWebViewController.getContentWidth
- PlatformInAppWebViewController.canScrollVertically
- PlatformInAppWebViewController.canScrollHorizontally
Settings affected:
- PlatformWebViewCreationParams.initialUserScripts
- InAppWebViewSettings.supportZoom
- InAppWebViewSettings.useOnLoadResource
- InAppWebViewSettings.useShouldInterceptAjaxRequest
- InAppWebViewSettings.useShouldInterceptFetchRequest
- InAppWebViewSettings.enableViewportScale
Events affected:
- the
hitTestResult
argument of PlatformWebViewCreationParams.onLongPressHitTestResult will be empty - the
hitTestResult
argument of ContextMenu.onCreateContextMenu will be empty - PlatformWebViewCreationParams.onLoadResource
- PlatformWebViewCreationParams.shouldInterceptAjaxRequest
- PlatformWebViewCreationParams.onAjaxReadyStateChange
- PlatformWebViewCreationParams.onAjaxProgress
- PlatformWebViewCreationParams.shouldInterceptFetchRequest
- PlatformWebViewCreationParams.onConsoleMessage
- PlatformWebViewCreationParams.onPrintRequest
- PlatformWebViewCreationParams.onWindowFocus
- PlatformWebViewCreationParams.onWindowBlur
- PlatformWebViewCreationParams.onFindResultReceived
- FindInteractionController.onFindResultReceived
Also, on MacOS:
Officially Supported Platforms/Implementations:
- iOS 13.0+
- MacOS 10.15+
Implementation
bool? applePayAPIEnabled;