Answered by:
[uwp] [C#] Best Practice for dialog with "buy me" message

Question
-
I want to show dialog with message
"This is trial functionality. You can buy this application to get full functionality"
Buy should be a link.
When user click it, it will go to the market place with my app.
1. How developers usually do this ?
I understand that I can create link to my app
https://msdn.microsoft.com/en-us/windows/uwp/publish/link-to-your-app
https://www.microsoft.com/store/apps/<your app's Store ID>
And getting app store id by api.
Then show hyperlink.
But may be there are more simple way ? How are you usually do this.
May be there built-in functionality ?
2. What is better to do from marketing point of view ?
- redirect to windows store page
- may be it is possible to navigate to purse page ( I don't know )
What is the best practice for such message. Where are buy links usually redirect to ?
- Edited by SmartWhy Thursday, January 19, 2017 12:20 PM
- Moved by Sabah ShariqMVP Thursday, January 19, 2017 1:43 PM Related to UWP
Thursday, January 19, 2017 12:19 PM
Answers
-
Hello SmartWhy,
>>” How developers usually do this ?”
Have checked the Windows.ApplicationModel.Store namespace? It contains In-app purchases and trials functions in UWP.
You could get the app license to check if current app is trial. See Implement a trial version of your app for more details.
According to the “license.IsTrial” value, you can let users choose to buy this app and have a fully-licensed version by calling “productResult.Product.RequestPurchaseAsync()”. Then it will show a "Buy interface".
The official code sample for your reference: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Store
Please read “Setup Instructions”, “Additional Setup Instructions for Business to Business Scenario” and “System requirements” before running the official sample.
Best Regards,
Xavier Eoro
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Marked as answer by SmartWhy Friday, January 20, 2017 9:30 AM
Friday, January 20, 2017 5:46 AM
All replies
-
Hi,
This is Visual C# forum. As your issue is related to UWP I am moving your thread to UWP forum for getting quick response.
Your understanding and cooperation will be grateful.Thanks,
Sabah Shariq[If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click
"Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]
Thursday, January 19, 2017 1:43 PM -
Hello SmartWhy,
>>” How developers usually do this ?”
Have checked the Windows.ApplicationModel.Store namespace? It contains In-app purchases and trials functions in UWP.
You could get the app license to check if current app is trial. See Implement a trial version of your app for more details.
According to the “license.IsTrial” value, you can let users choose to buy this app and have a fully-licensed version by calling “productResult.Product.RequestPurchaseAsync()”. Then it will show a "Buy interface".
The official code sample for your reference: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Store
Please read “Setup Instructions”, “Additional Setup Instructions for Business to Business Scenario” and “System requirements” before running the official sample.
Best Regards,
Xavier Eoro
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.- Marked as answer by SmartWhy Friday, January 20, 2017 9:30 AM
Friday, January 20, 2017 5:46 AM