Hi,
I am successfully able to embed the reports in my application.
But at the time of phased loading, there seems to be an issue with load(). If I am using powerbi.load() and report.render() and trying to render Mobile Portrait layout of a report, report renders in landscape mode.
But as soon as I replace the powerbi.load() method with powerbi.embed(), same code renders the MobilePortrait view of the report.
Further, when I am trying to fetch particular pages after the report is fully rendered, I am unable to do so.
I am using get() to fetch the report from the embedded container. Then, using report.getId() I am fetching the Id of the embedded report. This seems to work fine.
But as soon as I call report.getPages(), unable to retrieve the list.
I did verify I am using the latest version of PowerBI-JavaScript API i.e. v2.5.1
Please suggest what might seems to be the issue here.