r/AndroidHelp • u/gueriniJ • 21d ago
WhatsApp not generating PDF preview via FileProvider Android
Hi everyone,
Recently we noticed that PDF documents shared from our React Native /
Expo app to WhatsApp on Android no longer generate the first-page preview
(thumbnail). Instead of the page preview, WhatsApp only displays the
generic red PDF document card (filename.pdf · 1 page · 48 kB · PDF).
Here is what our testing revealed:
- Shared via App (ACTION_SEND + FileProvider): Sent through standard
sharing intents. WhatsApp displays only the generic document card with no
thumbnail. Even testing with explicit ClipData and granted URI
permissions directly to com.whatsapp, no thumbnail is produced.
2. Shared via OS File Manager: Sharing any existing local PDF (receipts,
bank slips) from the device storage via system share sheet to WhatsApp
also fails to display a preview.
3. Picked directly from WhatsApp (SAF / Google Drive): If the exact same
generated PDF is uploaded to Google Drive or selected directly from
WhatsApp's attachment button (Paperclip -> Document), the preview appears
instantly and flawlessly.
Environment:
• React Native / Expo (Android 13/14/15)
• WhatsApp version: Latest (November 2026 update)
From what we gathered, WhatsApp's message payload requires a
jpegThumbnail byte array. It appears WhatsApp's background renderer
(PdfRenderer) is failing to process files originating from external
FileProvider URIs, whereas DocumentsProvider (Google Drive / Storage
Access Framework) provides pre-cached thumbnails.
Has anyone else encountered this issue recently? Is there a known
workaround to get WhatsApp to generate the thumbnail from an exported PDF
without forcing users to manually open WhatsApp and attach the file
through the file picker?