locked
Share different content based on target

    Question

  • Hi,

    I'm trying to implement sharing in my app. Is it possible to set different content based on what the user chooses as the target app?
    For example if the user chooses an email app, I'll format the content to look nice in an email. But if the user chooses SMS, I only want to send a http-link to the content.

    Im using WinJS on Windows Phone. Not sure if this is the right place for WP questions, but my question is mainly about WinJS.

    Tuesday, September 02, 2014 6:23 AM

Answers

  • The share source shouldn't try to anticipate the target.

    Instead provide multiple formats and let the target choose between them. In your case, share text and web link.

    Tuesday, September 02, 2014 2:31 PM
    Moderator