@capacitor/browser crashes app when opening blob url on android

Calling web url works fine
Browser.open({ url: ‘https://www.example.com’ });
but

  const htmlContent = `
     <html>
    <body>
      <h1>Hello World</h1>
    </body>
  </html>
    `;
 const blob = new Blob([htmlContent], { type: 'text/html' });
 const url = URL.createObjectURL(blob);
 Browser.open({ url });

crashes the app

Only http and https urls are supported by Browser plugin, that’s a limitation on the native APIs used internally by the plugin.

You can try @capacitor/inappbrowser plugin using the WebView option.

1 Like

hi @julio-ionic tried using @capacitor/inappbrowser but it crashes the app on opening .