From 9c2a41c365febd0d7255ae9cb9e526229121841a Mon Sep 17 00:00:00 2001 From: Tyschenko Date: Sun, 29 Jun 2025 22:54:06 +0100 Subject: [PATCH] fix: Some Dapps (raydium.io/swap) on opening send to mobile blob: urls. We ignore them and handle only urls which were received on clicks on Link (based on navigationType field) --- apple/RNCWebViewImpl.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apple/RNCWebViewImpl.m b/apple/RNCWebViewImpl.m index 13913364b..af4fee252 100644 --- a/apple/RNCWebViewImpl.m +++ b/apple/RNCWebViewImpl.m @@ -1390,7 +1390,8 @@ - (void) webView:(WKWebView *)webView static dispatch_once_t onceToken; NSString *urlString = navigationAction.request.URL.absoluteString; - if ([urlString hasPrefix:@"blob:"]) { + // Some Dapps on opening send to mobile blob: urls. We ignore them and handle only urls which were received on clicks on Link (based on navigationType) + if ([urlString hasPrefix:@"blob:"] && navigationAction.navigationType == WKNavigationTypeLinkActivated) { if (_onFileDownload) { [self handleBlobDownloadUrl:urlString]; decisionHandler(WKNavigationActionPolicyCancel);