Capacitor : android Listen to share event #3383
-
hi developpers ,i am trying use share plugin (https://capacitorjs.com/docs/apis/share) to listen to share event to get share information from other app <intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter> the question is how to get info share to my app Share.addListener("share", (event) => {
Plugins.Modals.alert({
title: "share event",
message: "it works",
});
}); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There is no share event, capacitor share plugin only shares to other apps, but doesn’t receive. You’ll have to build your own plugin for that. |
Beta Was this translation helpful? Give feedback.
-
i find this plugin https://github.com/carsten-klaffke/send-intent |
Beta Was this translation helpful? Give feedback.
There is no share event, capacitor share plugin only shares to other apps, but doesn’t receive. You’ll have to build your own plugin for that.