KNOWLEDGE BASE

Unable To Display The Preview Of PDF In Google Drive On iOS


Published: 29 Dec 2020
Last Modified Date: 29 Dec 2020

Issue

After setting the Google Drive PDF embedded link "https://drive.google.com/file/d/<file id>/preview" as a Web Page Object in the dashboard and published it to Tableau Server or Tableau Online, unable to display the preview of PDF on iOS. A blank page is displayed.
User-added image

No issue occurs on Tableau Desktop.
User-added image

Environment

  • Tableau Server
  • Tableau Online
  • Google Drive
  • iOS (iPhone or iPad)
  • Safari
  • Chrome

Resolution

Workaround:
Option 1:
For Safari, try tapping Settings > Safari, then turn off the switch next to "Prevent Cross-Site Tracking" and "Block All Cookies". For more information see Block cookies (Apple).
User-added image
 
Option 2: For Chrome, try tapping Settings > scroll down and tap on Privacy > tap on Tracking, then turn off the switch next to “Allow Apps to Request to Track”.
User-added image

Cause

The behavior related to Cookie Restriction and Control third-party apps accesses to Google Driver. To prevent it from occurring, iOS need to be configured to allow third-party.

Additional Information

To get the Google Drive PDF embedded link "https://drive.google.com/file/d/<file id>/preview" follow the below steps.
1. Find the PDF file in Google Drive
2. Preview the PDF file in Google Drive
User-added image
 
3. Use the More actions menu and choose Open in new window
User-added image
4. Use the More actions menu and choose Embed item...
User-added image
5. Copy the provided URL
User-added image
Did this article resolve the issue?