Its Plugin
npm install ionic-capacitor-receive-intent
npx cap sync
addListener(eventName: 'newIntentReceived', listenerFunc: (data: AppSendActionIntentResult) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Listen for send action intent events (Android only). The extras will be passed as a key value pair directly from the Android intent.
Param | Type |
---|---|
eventName |
'newIntentReceived' |
listenerFunc |
(data: AppSendActionIntentResult) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Prop | Type |
---|---|
remove |
() => Promise<void> |
Prop | Type | Description |
---|---|---|
extras |
any |
An object with keys for Android intent names (like 'android.intent.extra.SUBJECT') and their value passed from the Android intent |