capacitor-plugins icon indicating copy to clipboard operation
capacitor-plugins copied to clipboard

Unable to open Blob url using Capacitor.browser

Open venna-kalyani opened this issue 1 year ago • 3 comments

@mlynch @aparajita @peschee @elylucas @imhoffd Its only working for urls which are starting with HTTP and HTTPS, But we have a requirement where we need to open blob url through mobile in Chrome/Safari/web.

Sample BLOB URL: blob:https://abcrandowmName.net/c35dd9db-6594-4b07-96a9-691d388e6b12

await Browser.open( { url: fileURL });

Actual behaviour: Not opening the blob url expected: to be open in browser.

version details: "@capacitor/browser": "^4.1.1", "@capacitor/core": "^4.0.0", "@ionic-native/core": "^5.28.0", "@angular/compiler": "^15.2.9",

Please help us with solution/inputs.

venna-kalyani avatar May 14 '24 11:05 venna-kalyani

@venna-kalyani We've since moved away from capacitor so I cannot really help you out.

peschee avatar May 14 '24 11:05 peschee

@peschee , would you mind if I ask you for an alternative plugin to achieve this. Need this for our requirement so...

venna-kalyani avatar May 14 '24 11:05 venna-kalyani

We're using native Swift code and a WebView directly, so no JS / Capacitor plugins.

peschee avatar May 14 '24 11:05 peschee