darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 136 forks source link

Option to force application chooser when share #71

Closed epoxa closed 5 years ago

epoxa commented 5 years ago

Additional field "chooser" in StartActivity and StartActivityForResult forces application selection dialog. It may be useful for ACTION_SEND intent. The string value of the field is used as a chooser dialog title. Ex: window.plugins.intentShim.startActivity( { action: window.plugins.intentShim.ACTION_SEND, type: 'text/*', extras: { "android.intent.extra.TEXT": artworkUrl, }, chooser: "Select application to share", } );

darryncampbell commented 5 years ago

Thanks for the contribution, this has now been merged to the main line

darryncampbell commented 5 years ago

& uploaded to npm as 1.1.6

epoxa commented 5 years ago

Sorry I didn't reflect this in readme.md