web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PDF viewer doesn't wor...
Power Apps
Answered

PDF viewer doesn't work on certain smartphone

(1) ShareShare
ReportReport
Posted on by

Hi, I've built multiple apps, and they all have the same problem. The PDF viewer work anytime when I open the app on desktop, but there are lots of problems on the smartphone app.

 

On some phones like my Pixel 6 (Android 13)

Sometimes it works

Android Work.png

Sometimes it only shows a small part of the PDF (It should be more like the first screenshot)

Android Don't Work.png

But on most other phones, IOS and Android, it just doesn't show it at all...

Android And IOS don't work.png

It shows an error message saying "Couldn't open PDF file, Make sure the PDF file is coming from an HTTPS link".

 

 

The field Document of the PDF Viewer contain the variable varPDFLink, set like this :

Set(varPDFLink,"appres://datasources/BonsDeLivraison%20-%20PDF/table/5900a294-11a9-45eb-8f23-85456359774d/rows/1/reference/https:%2F%2Fcanada-001.azure-apim.net%2Fapim%2Fsharepointonline%2F79baf01e9a834a52be74919205254840%2Fdatasets%2Fhttps%25253a%25252f%25252farmaturesboisfrancs.sharepoint.com%25252fsites%25252fARMATURESBOIS-FRANCS%2FGetFileContentByPath%3Fpath=%252fBonsDeLivraison%252520%252520PDF%252f" & EncodeUrl(varNumBon&".pdf"));

 I've printed the debug info to be sure that everything is fine

Screenshot_20220706-094705.pngScreenshot_20220706-094529.pngScreenshot_20220706-094452.png

 

As you can see, except the last part (equivalent to the varNumBon variable) of the appres://datasources link, they are all identical, but on some phone they work, and on some other they don't...

 

The PDF links are all using HTTPS as you can see from the debbug informations.

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,898 Most Valuable Professional on at

    The pdf viewer in Power Apps only works with sources that don't require authentication.  The links you are posting suggest that the PDFs are coming from SharePoint, which does require authentication.  The following Blog post walks through how to retrieve the PDF using a flow and display it in Power Apps.  Power Apps View A PDF Stored In A SharePoint Document Library (matthewdevaney.com)

  • OpenMindt_abf Profile Picture
    on at

    Thanks for your response! That's a weird limitation, I'll implement this solution and see if it works.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 301 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 297 Most Valuable Professional

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard