Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix file viewer not working in android 11+

ammarahm-ed2130c8a80683
diff --git a/apps/mobile/native/android/app/src/main/AndroidManifest.xml b/apps/mobile/native/android/app/src/main/AndroidManifest.xml
index 4abc52abb..2e53571da 100644
--- a/apps/mobile/native/android/app/src/main/AndroidManifest.xml
+++ b/apps/mobile/native/android/app/src/main/AndroidManifest.xml
@@ -17,6 +17,29 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" tools:node="remove"/>
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
+ <queries>
+ <intent>
+ <action android:name="android.intent.action.VIEW" />
+ <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+ <data android:mimeType="application/pdf" />
+ </intent>
+ <intent>
+ <action android:name="android.intent.action.VIEW" />
+ <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+ <data android:mimeType="text/*" />
+ </intent>
+ <intent>
+ <action android:name="android.intent.action.VIEW" />
+ <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+
+ <data android:mimeType="video/*" />
+ </intent>
+ <intent>
+ <action android:name="android.intent.action.VIEW" />
+ <!-- If you don't know the MIME type in advance, set "mimeType" to "*/*". -->
+ <data android:mimeType="audio/*" />
+ </intent>
+ </queries>
<application
android:name=".MainApplication"
@@ -30,6 +53,7 @@
android:supportsRtl="false"
tools:replace="android:supportsRtl"
android:usesCleartextTraffic="true">
+
<receiver android:exported="false" android:name=".NoteWidget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />