Nick
Nick

Reputation: 3435

Sharing links from WP8 app

I have done everything exactly as in How to share text and links from a Direct3D app for Windows Phone 8:

e->Request->Data->Properties->Title = "Share Text Title";
e->Request->Data->Properties->Description = "Share Text Description";
e->Request->Data->SetText("Main text");
e->Request->Data->SetUri(ref new Uri("http://msdn.microsoft.com"));

but on share screen (and on result webpage) I can only see two fields of four:

enter image description here

As you can see, description and text are missed. What's wrong and who's guilty?

Upvotes: 3

Views: 251

Answers (1)

Tim
Tim

Reputation: 459

Nothing is wrong, this is the expected behaviour. You have no guarantee of how the data you supply is used of if it is used at all.

It is up to the target application to use the content you provide in the most appropriate way for it's scenario. Currently (WP8.1 Build 12397) in the case of the messaging app if you only set the text and the title on the DataPackage it will display both of those however if you set a url as well it will display the title and the url but not the text.

The guidance is to give as many representations of the data as possible however if you know the user may want to share the text instead of both the link and text you might want to consider giving the user the option before invoking the share UI.

Upvotes: 4

Related Questions