Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Please advice me step by step or share documentation to apply Power BI to my mobile application (embed to my app do not link to open PowerBI App or browsers) .
I know 2 solutions for embed PowerBI
1. Embed for organization (prefer this solution)
2. Embed for customer
1. Embed for organization
I found this script but I don't sure which rows have to custom or where to find them or any guide to custom?
such as id, accessToken, ...
remark >> License : PowerBI Capacity (P1)
Thank for your reply
Hi @HelloTheSun ,
You're on the right track choosing "Embed for your organization," especially since you already have a Power BI Premium (P1) license, which supports this method. To embed a Power BI report directly into your mobile application without redirecting users to the Power BI app or browser, you'll need to use the Power BI JavaScript API (as shown in your code) along with Azure Active Directory (AAD) authentication.
First, register your mobile app in Azure AD to obtain the necessary credentials like client ID and redirect URI. Then, generate an AAD access token through a secure authentication flow (using MSAL or similar libraries), which you'll use in place of the placeholder accessToken in your script. The report ID and embed URL should be taken from the Power BI Service where your report is published.
Once you've configured authentication and passed valid values into your embed configuration (like report ID, embed URL, tokenType as AAD, and the access token), your mobile app will be able to securely embed the report for organizational users. Microsoft provides a full step-by-step guide here if you’d like to follow through with more detailed implementation steps.
Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.
Connect with me on LinkedIn: Rohit Kumar
This is not supported. On Mobile your users need to consume Power BI content through the Power BI Mobile app.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.