<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Embedding power-bi into cordova app is not working for some phones in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/113433#M3943</link>
    <description>&lt;P&gt;I'm trying to embed the power-bi report into cordova app as explained &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics" target="_blank" rel="nofollow noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var embedConfiguration = {&lt;/P&gt;&lt;P&gt;type: 'report',&lt;BR /&gt;accessToken: '// access token',&lt;BR /&gt;id: '// report id',&lt;BR /&gt;embedUrl: '&lt;A href="https://embedded.powerbi.com/appTokenReportEmbed" target="_blank"&gt;https://embedded.powerbi.com/appTokenReportEmbed&lt;/A&gt;'&lt;BR /&gt;};&lt;BR /&gt;var reportContainer = document.getElementById('reportContainer');&lt;BR /&gt;var report = powerbi.embed(reportContainer , embedConfiguration);&lt;BR /&gt;powerbi.get(reportContainer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting the following errors for some phones:&lt;/P&gt;&lt;P&gt;Uncaught DOMException: Blocked a frame with origin "&lt;A href="https://embedded.powerbi.com" target="_blank"&gt;https://embedded.powerbi.com&lt;/A&gt;" from accessing a cross-origin frame.(…)&lt;/P&gt;&lt;P&gt;The error doesn't depends on android version also, two phones which has android 5.1.1 - for one of the phone, power bi report works fine but for another phone getting this error.&lt;/P&gt;&lt;P&gt;iframe is being loaded for all phones but the content of that iframe document is different if I get this error(In this case, it just shows the power-bi loader).&lt;/P&gt;&lt;P&gt;I tried putting &amp;lt;access origin="*" /&amp;gt; in config.xml but no luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jan 2017 16:24:20 GMT</pubDate>
    <dc:creator>PriyankaSinha</dc:creator>
    <dc:date>2017-01-14T16:24:20Z</dc:date>
    <item>
      <title>Embedding power-bi into cordova app is not working for some phones</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/113433#M3943</link>
      <description>&lt;P&gt;I'm trying to embed the power-bi report into cordova app as explained &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embedding-Basics" target="_blank" rel="nofollow noreferrer"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var embedConfiguration = {&lt;/P&gt;&lt;P&gt;type: 'report',&lt;BR /&gt;accessToken: '// access token',&lt;BR /&gt;id: '// report id',&lt;BR /&gt;embedUrl: '&lt;A href="https://embedded.powerbi.com/appTokenReportEmbed" target="_blank"&gt;https://embedded.powerbi.com/appTokenReportEmbed&lt;/A&gt;'&lt;BR /&gt;};&lt;BR /&gt;var reportContainer = document.getElementById('reportContainer');&lt;BR /&gt;var report = powerbi.embed(reportContainer , embedConfiguration);&lt;BR /&gt;powerbi.get(reportContainer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting the following errors for some phones:&lt;/P&gt;&lt;P&gt;Uncaught DOMException: Blocked a frame with origin "&lt;A href="https://embedded.powerbi.com" target="_blank"&gt;https://embedded.powerbi.com&lt;/A&gt;" from accessing a cross-origin frame.(…)&lt;/P&gt;&lt;P&gt;The error doesn't depends on android version also, two phones which has android 5.1.1 - for one of the phone, power bi report works fine but for another phone getting this error.&lt;/P&gt;&lt;P&gt;iframe is being loaded for all phones but the content of that iframe document is different if I get this error(In this case, it just shows the power-bi loader).&lt;/P&gt;&lt;P&gt;I tried putting &amp;lt;access origin="*" /&amp;gt; in config.xml but no luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2017 16:24:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/113433#M3943</guid>
      <dc:creator>PriyankaSinha</dc:creator>
      <dc:date>2017-01-14T16:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding power-bi into cordova app is not working for some phones</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/114450#M3948</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19842"&gt;@PriyankaSinha&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That seems a common security error when using an Iframe, which is not Power BI specific. Check a &lt;A href="http://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame" target="_self"&gt;similar link&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem is specific for browsers or setting of the phones, embeding power bi is actually for web applications viewed from the mainstream browsers on PC. For mobile devices, try to use &lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-power-bi-apps-for-mobile-devices/" target="_self"&gt;Power BI Mobile&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 10:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/114450#M3948</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-01-17T10:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding power-bi into cordova app is not working for some phones</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/116442#M4013</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6971"&gt;@Eric_Zhang&lt;/a&gt;&amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please guide me how can I use Power Bi Mobile for my App.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 09:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/116442#M4013</guid>
      <dc:creator>PriyankaSinha</dc:creator>
      <dc:date>2017-01-20T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding power-bi into cordova app is not working for some phones</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/116453#M4014</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/19842"&gt;@PriyankaSinha&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Power BI Mobiles are application for mobile devices(android, ios), you shall publish your report to Power BI Service and view the report from Power BI Mobile.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 09:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-power-bi-into-cordova-app-is-not-working-for-some/m-p/116453#M4014</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-01-20T09:59:02Z</dc:date>
    </item>
  </channel>
</rss>

