File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
iOS_SDK/OneSignalSDK/Source Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ - (void)setupWebviewWithMessageHandler:(id<WKScriptMessageHandler>)handler {
110110 self.webView = [[WKWebView alloc ] initWithFrame: mainBounds configuration: configuration];
111111 self.webView .backgroundColor = [UIColor clearColor ];
112112 self.webView .opaque = NO ;
113+ // https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/
114+ if (@available (macOS 13.3 , iOS 16.4 , *)) {
115+ self.webView .isInspectable = YES ;
116+ }
113117 [self addSubview: self .webView];
114118
115119 [self layoutIfNeeded ];
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ - (void)viewDidLoad {
4141
4242 _webView = [WKWebView new ];
4343 _webView.navigationDelegate = self;
44+ // https://webkit.org/blog/13936/enabling-the-inspection-of-web-content-in-apps/
45+ if (@available (macOS 13.3 , iOS 16.4 , *)) {
46+ _webView.isInspectable = YES ;
47+ }
4448 [self .view addSubview: _webView];
4549
4650 [self pinSubviewToMarginsWithSubview: _webView withSuperview: self .view];
You can’t perform that action at this time.
0 commit comments