简体   繁体   中英

How to share data to my Flutter app from browser and another apps?

Is it possible to share data from browser and another apps with "share" button to my Flutter app or it is only for native iOS apps?

在此处输入图像描述

<activity android:name=".ShareActivity">
<intent-filter
    android:label="Share with my app">
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

Add this to your android manifest file to make it happen.

In case fo IOS use the more button and you can choose the app you need to appear on the list.

Refer this link on how to make it in IOS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM