Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
1

The application domain is not authorized to use PDF Embed API only certain devices

Community Beginner ,
Aug 24, 2024 Aug 24, 2024

Copy link to clipboard

Copied

Hello Adobe Community,

I’m encountering a puzzling issue with the Adobe PDF Embed API. My website integrates the API to display PDFs directly on the page, and it has been working fine for most users. However, recently, I’ve started receiving an error on certain devices that states, “The application domain is not authorized to use the PDF Embed API.”

Here’s some background on the situation:

  • Implementation: The API is correctly set up with the appropriate client ID, and it functions normally on most devices.
  • Issue: On specific devices, the PDF viewer fails to load, showing an error message about the domain not being authorized to use the API.
  • What I’ve Tried:
    • Cleared browser cache on the affected devices.
    • Tested the site across multiple browsers and devices, with the issue appearing only in certain environments.
    • Confirmed that my domain is registered in the Adobe Developer Console and should be authorized.
    • Verified that my website is served over HTTPS.

I’m unsure why this problem is occurring only on certain devices. Has anyone else faced this issue, or does anyone have suggestions for resolving it? Any guidance would be greatly appreciated.

Views

1.7K
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

Not sure what to suggest. Is it always one KIND of device/browser? Or random? If you can run the device in front of you and consistently reproduce, what happens if you use remote browser debugging?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

Hi, 

Thanks for replying, so one of my customers pointed out to me, i tried to load it on a different broswer and it kept saying the application is not authorized, so i created a link and send it to him, it worked fine.  Here is a test link :https://vip-shop-management.com/test3.htm , this link won't open on of iphone, but it opens on my other iphone, can you check it please.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

Thank you for your reply. One of my customers mentioned an issue where they tried to load the application in a different browser, but it kept saying that the application is not authorized. I created a new link and sent it to them, and it worked fine. Here’s a test link: https://vip-shop-management.com/test3.htm. However, this link won’t open on one of my iPhones, but it does open on another iPhone. I tried it on Safari, Google Chrome, and Edge, but got the same results. Could you please check it out?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

Nothing seems amiss. All I can suggest is remote debug from a Mac, How to Debug Websites on iPhone Safari | BrowserStack. That may give you more info. 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 26, 2024 Aug 26, 2024

Copy link to clipboard

Copied

Thanks for providing the link. I ran tests on both Android and iOS without any issues, but my iPhone 15 is still showing the same error even after restarting it and clear the history. Do you have any suggestions?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 27, 2024 Aug 27, 2024

Copy link to clipboard

Copied

Did you try remote debugging to see if anything showed up in the browser console?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 27, 2024 Aug 27, 2024

Copy link to clipboard

Copied

There is nothing debug, the code is straight forward from Adobe, my issue is i don't want my customers to have this problem, if we have to pay for tech support, i'll be happy too. I am running IOS 18 on my iphone 15. However my customer was having the same problem on all his devices. It's a random problem. But customers don't understand random, it's either it works or it doesn't. The error pops up directly from Adobe, the scripts checks the website and the clientId. According to adobe, the website is not authorized. But it is. Here is the code:

 <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>View PDF</title>
 <script src="https://documentcloud.adobe.com/view-sdk/main.js"></script>
 </head>
 <body>
 <div id="adobe-dc-view" style="height: 800px; width: 100%;"></div>
 <script>
 /*
 Copyright 2019 Adobe
 All Rights Reserved.
  
 NOTICE: Adobe permits you to use, modify, and distribute this file in
 accordance with the terms of the Adobe license agreement accompanying
 it. If you have received this file from a source other than Adobe,
 then your use, modification, or distribution of it requires the prior
 written permission of Adobe.
 */
  
 /* Control the default view mode */
 const viewerConfig = {
 /* Allowed possible values are "FIT_PAGE", "FIT_WIDTH", "TWO_COLUMN", "TWO_COLUMN_FIT_PAGE" or "". */
 defaultViewMode: "",
 };
  
 /* Wait for Adobe Acrobat Services PDF Embed API to be ready */
 document.addEventListener("adobe_dc_view_sdk.ready", function () {
 /* Initialize the AdobeDC View object */
 var adobeDCView = new AdobeDC.View({
 /* Pass your registered client id */
 clientId: "024dab95555d46c182a49926bfa8e978",
 /* Pass the div id in which PDF should be rendered */
 divId: "adobe-dc-view",
 });
  
 /* Invoke the file preview API on Adobe DC View object */
 adobeDCView.previewFile({
 /* Pass information on how to access the file */
 content: {
 /* Location of file where it is hosted */
 location: {
 url: "https://acrobatservices.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf",
 /*
 If the file URL requires some additional headers, then it can be passed as follows:-
 headers: [
 {
 key: "<HEADER_KEY>",
 value: "<HEADER_VALUE>",
 }
 ]
 */
 },
 },
 /* Pass meta data of file */
 metaData: {
 /* file name */
 fileName: "Bodea Brochure.pdf"
 }
 }, viewerConfig);
 });
 </script>
 </body>
 </html>
  

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 27, 2024 Aug 27, 2024

Copy link to clipboard

Copied

Thank you so much for all the assistance you provided. You can go ahead and close the post. Unfortunately, we had to switch to using the Google iframe PDF viewer instead due to the following reasons:

  1. The PDF Embed API doesn’t add a shadow behind the PDF, causing it to blend in with the page.
  2. On mobile devices, the PDF Embed API doesn’t utilize the full width of the screen, making the PDF difficult to view properly.
  3. When zooming in and out, there’s instability and a loss of focus.
  4. Additionally, we’ve encountered random unauthorized messages that could appear at any time.

It's surprising that the Google Docs Viewer (gview) handles all these issues without a problem. It provides a shadow behind the PDF, fits the PDF to the width on mobile devices, and offers a flawless zoom experience. Considering that Adobe created the PDF format, it's disappointing to see these issues. I still appreciate Adobe and hope these problems will be resolved soon so we can switch back. I use multiple Adobe software products and continue to support them.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2024 Aug 28, 2024

Copy link to clipboard

Copied

I have this issue too and it is very frustrating. I'm viewong on a normal PC desktop. Chrome browser. It first loaded on every refresh where I'm able to see my PDF for 2 seconds and then the error message came up:

File preview not available


This application domain (https://wrave.io) is not authorized to use the provided PDF Embed API Client ID.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 29, 2024 Aug 29, 2024

Copy link to clipboard

Copied

So as I told the other person - if you can find a way to repro this consistently - ie, hit this url with this browser, I can try to replicate. Also, if you can open up devtools and see if anything is there, that would help as well.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 29, 2024 Aug 29, 2024

Copy link to clipboard

Copied

I installed the Web Inspector on my phone to track the issue, but there are no errors except that it couldn’t load. The error seems to be coming from the Adobe server. Do you have any logs that can be checked? We can provide the IP address and URL so you can investigate why it’s showing as unauthorized on your end. I'm willing to pay for the service. Can I speak with someone in charge at Adobe? It feels like there's a lack of concern or motivation to resolve this issue. Please also add a shadow behind the PDF and ensure it fits the width on mobile devices. Does Adobe care about the customer experience?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 29, 2024 Aug 29, 2024

Copy link to clipboard

Copied

Here is my client ID: "024dab95555d46c182a49926bfa8e978." Please check the logs; you should see instances of both "unauthorized" and "authorized." I've wasted a week of my time trying to fix something that appears to be an issue on your end, which wasn't happening until recently. If this issue isn't taken seriously, I will escalate it to the CEO of Adobe, and I am prepared to fly to San Jose, California, to understand why Adobe seems not to care about its customers.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2024 Aug 29, 2024

Copy link to clipboard

Copied

This is a way better solution (iSpring Suite): https://www.youtube.com/watch?v=poV1sgZQKqU

Solved my issues of wanting to play videos and animation on my embedded slideshow. I can customize the embedeed interface and control navigation. Power Point to HTML 5 in a click, it display on any devices as it is responsive framework. Hope it helps.

This tutorial shows you how to convert a PowerPoint presentation to HTML5. Learn more about iSpring Converter Pro here: http://www.ispringsolutions.com/ispring-converter?&utm_source=youtube&utm_medium=social&utm_campaign=how-to-convert-a-powerpoint-presentation-to-HTML5 Site: ...

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 29, 2024 Aug 29, 2024

Copy link to clipboard

Copied

If you want something done right, you've got to do it yourself. After wasting all that time with the PDF viewer on dog.google.com and trying to figure out why Adobe's PDF embed was malfunctioning, it turned out to be easier to create our own PDF viewer. Our version features a shadow behind each page, fits perfectly to the width on mobile devices, renders seamlessly, automatically adjusts the PDF's width to fit the screen while zooming out on mobile, and loads in milliseconds since everything is hosted on our server. If Adobe needs help fixing theirs, they know where to find me.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 30, 2024 Aug 30, 2024

Copy link to clipboard

Copied

Sounds awesome - good luck with your viewer!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 23, 2024 Sep 23, 2024

Copy link to clipboard

Copied

I can confirm this is happening for me right after upgrading my iPhone to IOS 18. 
I tried checking errors etc on my site but I have found that even Adobe's own implementation on their site shows the error as well, so it must be an issue relating to IOS 18. 

Developer Resources & Tutorials  Adobe PDF Services API  Adobe Acrobat Services - Adobe Developers.jpeg.pngexpand image

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 23, 2024 Sep 23, 2024

Copy link to clipboard

Copied

I can confirm this is happening on desktop Safari as well. Raising it internally.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 23, 2024 Sep 23, 2024

Copy link to clipboard

Copied

I am also having problems with ios 18 safari. It seems that pages do not render properly as well, aside from the domain api problem.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 23, 2024 Sep 23, 2024

Copy link to clipboard

Copied

Yes, we've confirmed this. I've reported it - will let folks know when there is an update.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

I've been able to sort out that both Chrome and Safari have this issue on iOS 18. Is there any solution yet, otherwise all I can do is take all landing pages down with a notice that the PDF viewer is under maintenance.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 27, 2024 Sep 27, 2024

Copy link to clipboard

Copied

LATEST

On iOS, all browsers are Safari, you can thank Apple for that.

 

There is no update yet. I've pinged internally for an update.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources