-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Add in Store Context page #18604
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
uid: Uno.Features.StoreContext | ||
--- | ||
|
||
# Store Context | ||
|
||
> [!TIP] | ||
> This article provides Uno-specific information for the `Windows.Services.Store.StoreContext` namespace. For a comprehensive overview of this feature and detailed usage instructions, refer to the official documentation for [Windows.Services.Store.StoreContext Namespace](https://learn.microsoft.com/uwp/api/Windows.Services.Store.StoreContext). | ||
|
||
## In-App Review | ||
|
||
The in-app review feature is currently supported only on Android through Google Play. | ||
|
||
### Google Play Integration | ||
|
||
For Google Play support, make sure to add the `Uno.WinUI.GooglePlay` package to your project. This package is available on [nuget.org](https://www.nuget.org/packages/Uno.WinUI.GooglePlay). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was there an associated Uno Feature with the package for Uno.Sdk? In that case it's best to document that for Uno.Sdk users There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I was thinking the same this morning, though I don’t think we’ve added it yet. It would be very nice indeed 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it was not added, but certainly makes sense. Do you want to try to make a PR for that @morning4coffe-dev ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MartinZikmund Already in progress 😊: #18613. Let me know if the changes are sufficient or if more adjustments are needed. |
||
|
||
### Usage | ||
|
||
Once you added the above package to your project, you can prompt users to rate and review your appby using the following code snippet: | ||
|
||
```csharp | ||
await Windows.Services.Store.StoreContext.GetDefault().RequestRateAndReviewAppAsync(); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also supported on iOS 👍