-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Issue Type: 🐞 Bug Report
Component: File Viewer / Android & iOS App
Description
When attempting to open a file (specifically .docx, .pdf, or other document formats) within the Internxt mobile application, the "Open With" action does not function as intended. Instead of invoking a system Intent to display a list of compatible applications capable of editing or viewing that specific file type, the app triggers the generic System Share Sheet.
This prevents users from seamlessly opening files in external editors (like Microsoft Word or Google Docs) and instead forces them to "share" a copy of the file, which breaks the workflow of opening a file for direct interaction.
Expected Behavior
When the "Open With" button is pressed:
- The app should trigger a file-type specific Intent (on Android) or Document Interaction Controller (on iOS).
- A list of installed applications that support the specific MIME type (e.g.,
application/vnd.openxmlformats-officedocument.wordprocessingml.document) should be displayed. - Selecting an app from that list should launch the chosen app and pass the file data/URI directly.
Actual Behavior
When the "Open With" button is pressed:
- The app opens the standard System Share Sheet (used for sending files via WhatsApp, Email, AirDrop, etc.).
- The user is presented with contact shortcuts and social media apps rather than productivity/editor apps.
Steps to Reproduce
- Open the Internxt app.
- Navigate to any
.docxor.pdffile in your cloud storage. - Tap on the file to open the preview or the file options menu.
- Locate and tap the "Open With" button.
- Observe that the Share Sheet appears instead of the "Complete action using..." app picker.
Technical Context & Suggestions
The current implementation likely uses a generic sharing function (e.g., Share.share in React Native or a standard ACTION_SEND Intent on Android) instead of a View/Edit Intent.
- For Android: The implementation should use
Intent.ACTION_VIEWwith the correctsetDataAndTypeset to the file's MIME type andFLAG_GRANT_READ_URI_PERMISSION. - For iOS: Ensure
UIDocumentInteractionControlleris used withpresentOpenInMenuFromRectrather thanUIActivityViewController.
Environment
- App Version: 1.8.4
- OS: Android 16
- Device: Poco F7