I’d like to register my Meteor app to allow the user to share photos to my app. That is, the app should appear in the list of apps to which he can share his pic, along with Slack, Facebook, and whatever else is installed.
I’m hoping this is a simple mobile-config.js line. If not, then do I need some Cordova plugin, maybe?
Yes, so are we. This does not answer the question.
As stated:
We need to register the app to allow the user to share photos to my app. That is, the app should appear in the list of apps to which he can share his pic, along with Slack, Facebook, and whatever else is installed.
const handleIntent = function (intent) {
convertStore.url.set(intent.clipItems[0].text);
};
// If users shares a link via another app
window.plugins.intent.setNewIntentHandler(handleIntent);
window.plugins.intent.getCordovaIntent(handleIntent);