Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Team,
We are developing a Cordova app that displays a Power BI Report (inside a iframe) using Power BI Embedded framework. It works fine in the Android version but gives an error in iOS.
"Blocked a frame with origin app.powerbi.com from accessing a frame with origin "file". The frame requesting access has a
protocol of "https", the frame being accessed has a protocol of "file". Protocols must match."
Is there any work around to get over this issue?
Thanks
Solved! Go to Solution.
This is due to UIWebView API deprecation by Apple. This is not a Power BI or Microsoft issue.
Please see this for detailed explanation of the root cause of this issue and what you will need to do - https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/
To summarize, this is what you may need to do...
On November 25th, 2019, the Cordova team released Cordova iOS 5.1.0, which disables UIWebview at compile time. They were previously discussing a plan to move forward.
To update:
Ensure you have a WKWebView plugin installed: either the official Apache one or Ionic’s. All Ionic starter apps automatically include cordova-plugin-ionic-webview.
Add <preference name="WKWebViewOnly" value="true" /> to your config.xml file.
Update each Cordova plugin to the latest version (these can trigger the warning too). Better yet – remove them if they are no longer needed!
Run cordova prepare ios to apply the changes.
This is due to UIWebView API deprecation by Apple. This is not a Power BI or Microsoft issue.
Please see this for detailed explanation of the root cause of this issue and what you will need to do - https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/
To summarize, this is what you may need to do...
On November 25th, 2019, the Cordova team released Cordova iOS 5.1.0, which disables UIWebview at compile time. They were previously discussing a plan to move forward.
To update:
Ensure you have a WKWebView plugin installed: either the official Apache one or Ionic’s. All Ionic starter apps automatically include cordova-plugin-ionic-webview.
Add <preference name="WKWebViewOnly" value="true" /> to your config.xml file.
Update each Cordova plugin to the latest version (these can trigger the warning too). Better yet – remove them if they are no longer needed!
Run cordova prepare ios to apply the changes.
Hi @PBI_Enthusiast,
Thank you very much for your assistance. Now the power bi reports are loading without any issue in Web View.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |