locked
is there a way to exchange messages between share charm source App and target App?

    Question

  • I am working on a windows store app which have a feature to let user share content in my app with another app using Windows Share charm.

    My question is: In the source app(my app), is there a way to capture the messages from the a target app? Say user want to share an image using the Mail app, I want to know whether that email is sent successfully.

    I know for the target app, The ShareOperation object has some functions to send messages back to Windows, like:

    shareOperation.reportError(errorText);
    shareOperation.reportDataRetrieved();
    ....
    

    Is there a way to capture these messages withing the source app?

    Thanks!

    Monday, August 25, 2014 10:45 PM

Answers

  • Yes. ShareOperation or Share Charm cannot help you pass any message from target app to source app.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Young Zhao Tuesday, August 26, 2014 5:43 AM
    Tuesday, August 26, 2014 3:09 AM
    Moderator

All replies

  • Hi Young Zhao,

    I believe you may have a bit misunderstanding for these methods, for more information, please run the sample:

    Sharing content source app sample and  Sharing content target app sample.

    I don't think we can pass the data between two apps, the share charm give us a chance to share data from one app to another but it does not have any duty to monitor if the share target app complete the share task.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, August 26, 2014 2:54 AM
    Moderator
  • Thanks so much James!

    Yes I did look at the 2 sample apps, and I understand they are 2 standalone apps.  So is it NOT possible for the source app to capture any message from the target app, correct? 

    Tuesday, August 26, 2014 3:00 AM
  • Yes. ShareOperation or Share Charm cannot help you pass any message from target app to source app.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Young Zhao Tuesday, August 26, 2014 5:43 AM
    Tuesday, August 26, 2014 3:09 AM
    Moderator
  • Thanks again.
    Tuesday, August 26, 2014 5:43 AM