diff --git a/ios/MessageWebViewWrapper.swift b/ios/MessageWebViewWrapper.swift index eb518036..da723a6b 100644 --- a/ios/MessageWebViewWrapper.swift +++ b/ios/MessageWebViewWrapper.swift @@ -67,6 +67,10 @@ class _MessageWebViewWrapper: NSObject, UANavigationDelegate, NativeBridgeDelega self.nativeBridge.nativeBridgeDelegate = self self.webView.navigationDelegate = self.nativeBridge self.webView.configuration.dataDetectorTypes = .all + + if #available(iOS 16.4, *) { + self.webView.isInspectable = Airship.isFlying && Airship.config.isWebViewInspectionEnabled + } } @MainActor diff --git a/src/types.ts b/src/types.ts index ae7da1f6..7ee483f6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -481,11 +481,15 @@ export interface AirshipConfig { */ itunesId?: string; - /** * If set to `true`, the SDK will use the preferred locale. Otherwise it will use the app's locale. */ useUserPreferredLocale?: boolean; + + /** + * Allows the WebViews to be inspected in Safari. + */ + isWebViewInspectionEnabled?: boolean; }; /**