Explorar o código

Android: Register intent to receive images

Neeraj Gupta %!s(int64=4) %!d(string=hai) anos
pai
achega
9e2c555dbc
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      android/app/src/main/AndroidManifest.xml

+ 14 - 0
android/app/src/main/AndroidManifest.xml

@@ -18,6 +18,20 @@
                 <category android:name="android.intent.category.BROWSABLE" />
                 <data android:scheme="ente"/>
             </intent-filter>
+
+            <!--Filter to support sharing images into our app-->
+            <intent-filter android:label="Upload to Ente">>
+                <action android:name="android.intent.action.SEND" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:mimeType="image/*" />
+            </intent-filter>
+
+            <intent-filter android:label="Upload to Ente">
+                <action android:name="android.intent.action.SEND_MULTIPLE" />
+                <category android:name="android.intent.category.DEFAULT" />
+                <data android:mimeType="image/*" />
+            </intent-filter>
+
         </activity>
         <!-- Don't delete the meta-data below.
              This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->