ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
531 stars 596 forks source link

Unable to open Blob url using Capacitor.browser #2104

Open venna-kalyani opened 6 months ago

venna-kalyani commented 6 months ago

@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.

peschee commented 6 months ago

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

venna-kalyani commented 6 months ago

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

peschee commented 6 months ago

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