capacitor
capacitor copied to clipboard
Android: iframe with the Blob URL/Object URL does not work correctly
Bug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 4.7.0
@capacitor/core: 4.7.0
@capacitor/android: 4.7.0
@capacitor/ios: 4.7.0
Installed Dependencies:
@capacitor/cli: 4.7.0
@capacitor/android: 4.7.0
@capacitor/core: 4.7.0
@capacitor/ios: 4.7.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)
Android
Current Behavior
Programmatically attaching iframe with the Blob URL/Object URL source produces an iframe with empty body/content.
Expected Behavior
iframe content is being displayed
Code Reproduction
https://github.com/natalya-semenova/vue-cap-test
Other Technical Details
npm --version output: 9.5.0
node --version output: v18.14.2
I have the same problem, it works on ios and desktop, but not on adnroid.
"@capacitor/android": "^5.1.1",
"@capacitor/app": "^5.0.6",
"@capacitor/assets": "^2.0.4",
"@capacitor/cli": "^5.1.1",
"@capacitor/core": "^5.1.1",
"@capacitor/device": "^5.0.6",
"@capacitor/ios": "^5.1.1",
Maybe regression in Cordova? https://issues.apache.org/jira/browse/CB-9558
This in capacitor.config.ts didn't helped:
server: {
allowNavigation: ['blob:*', 'about:*'],
},
@natalya-semenova did you find the solution for this? I have a similar issue
Any update on this we still have problem
Also experiencing this issue. Perhaps this PR is the solution? https://github.com/ionic-team/capacitor/pull/5498
This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.