Hassan Siddique
Hassan Siddique

Reputation: 1590

Show own Cordova/PhoneGap App where user open any share dialog

Is there any setting or any plugin in Cordova from where my app list down in share dialog, like facebook, twitter or flicker shown up to user when he open a share dialog or want to share something.

See picture for reference, I want to show my app in this dialog and when user clicks to share, my app should accept that shared content.

enter image description here

Upvotes: 3

Views: 520

Answers (1)

Sandstorm
Sandstorm

Reputation: 144

Add this to your config.xml

  <gap:config-file platform="android" parent="/manifest/application" mode="add" >
<activity android:name="urlscheme1" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/*" />
</intent-filter>
</activity>
</gap:config-file>

Upvotes: 1

Related Questions