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

Error using PDF Embed API on Ionic Capacitor

Community Beginner ,
Nov 18, 2022 Nov 18, 2022

Trying to integrate this with my Ionic Capacitor iOS app, and receiving the following error "This application domain (capacitor://localhost) is not authorized to use the provided PDF Embed API Client ID." - When running ionic through my browser (localhost:8100) it displays the PDF file perfect, but when testing on an iOS device I am seeing the File preview not available error. My client ID domain is setup as localhost, but i cannot set the domain to capacitor://localhost - Any suggestions?

TOPICS
Bug , PDF Embed API
1.1K
Translate
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 Expert ,
Nov 18, 2022 Nov 18, 2022

Embed API is only supported within browsers. I wouldn't expect it to run in a Capacitor app.

Translate
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 ,
Nov 29, 2022 Nov 29, 2022

In my scenario I can easily view the PDF via the embed API on the tablet (for 2-3 seconds), and then the error appears - is there no plan for Adobe to accommodate Ionic/Capacitor so we could embed PDF's on mobile devices/tablets? Seems like a relatively simple fix could allow you to add "capacitor://localhost" as the authorized domain as it is acting in the same capacity as "localhost" which they are allowing.

Translate
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 ,
May 04, 2023 May 04, 2023
LATEST

I've been having the same problem. Did you manage to find a solution or are you still waiting for an update that allows the use of the API within Capacitor?

Translate
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