From 1f5621c59a1f4164e6e8ae720125c1ca976c3472 Mon Sep 17 00:00:00 2001
From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com>
Date: Mon, 28 Oct 2024 07:44:49 +0100
Subject: [PATCH 1/4] docs: Add in Store Context page
(cherry picked from commit ee53078699feaf810daf0b92939a4fe1a0afcaf5)
---
.../features/windows-ui-storecontext.md | 24 +++++++++++++++++++
doc/articles/toc.yml | 2 ++
2 files changed, 26 insertions(+)
create mode 100644 doc/articles/features/windows-ui-storecontext.md
diff --git a/doc/articles/features/windows-ui-storecontext.md b/doc/articles/features/windows-ui-storecontext.md
new file mode 100644
index 000000000000..ce2349205de9
--- /dev/null
+++ b/doc/articles/features/windows-ui-storecontext.md
@@ -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).
+
+### 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();
+```
diff --git a/doc/articles/toc.yml b/doc/articles/toc.yml
index ba788bbdf320..73432e5c82c0 100644
--- a/doc/articles/toc.yml
+++ b/doc/articles/toc.yml
@@ -629,6 +629,8 @@
href: features/SpeechRecognition.md
- name: Step Counter
href: features/step-counter.md
+ - name: Store Context
+ href: features/windows-ui-storecontext.md
- name: Title Bar Customization
href: features/windows-ui-viewmanagement.md
- name: URI Launcher
From 56391c19fe7e77bc7495bd17a809d6252300eae8 Mon Sep 17 00:00:00 2001
From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com>
Date: Thu, 7 Nov 2024 15:33:48 +0100
Subject: [PATCH 2/4] chore: Add details for iOS
(cherry picked from commit 746f1d8af17f8f1f38eb1af6e1f9d64f1ee78ae3)
---
.../features/windows-ui-storecontext.md | 20 ++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/doc/articles/features/windows-ui-storecontext.md b/doc/articles/features/windows-ui-storecontext.md
index ce2349205de9..1fe2b3bae908 100644
--- a/doc/articles/features/windows-ui-storecontext.md
+++ b/doc/articles/features/windows-ui-storecontext.md
@@ -9,15 +9,29 @@ uid: Uno.Features.StoreContext
## In-App Review
-The in-app review feature is currently supported only on Android through Google Play.
+The in-app review feature is currently supported on iOS and 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).
+#### References in a Single Project
+
+In Uno Platform Single Project, you'll need to add the `GooglePlay` [Uno Feature](xref:Uno.Features.Uno.Sdk#uno-platform-features) as follows:
+
+```xml
+
+ ...
+ GooglePlay;
+ ...
+
+```
+
+#### References in a Legacy Project
+
+On all Uno Platform targets, you'll need the 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).
### 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:
+For iOS, no additional steps are needed—you can use the feature via the following snippet directly. On Android, ensure that you've added the above package to your project first.
```csharp
await Windows.Services.Store.StoreContext.GetDefault().RequestRateAndReviewAppAsync();
From e9fa9ef7ad335fc2f6bec066a94173f9f9f6bc3e Mon Sep 17 00:00:00 2001
From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com>
Date: Thu, 7 Nov 2024 16:02:29 +0100
Subject: [PATCH 3/4] chore: Adjust cSpell
(cherry picked from commit cd8986e3edde31844653cf215cb0a6323b4f5850)
---
build/cSpell.json | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build/cSpell.json b/build/cSpell.json
index 550040fd683d..53432b651001 100644
--- a/build/cSpell.json
+++ b/build/cSpell.json
@@ -202,7 +202,8 @@
"jlaban",
"sasakrsmanovic",
"maccatalyst",
- "settingscard"
+ "settingscard",
+ "storecontext"
],
"patterns": [
{
From 2a3ac67f7fa8398c854602ca46630f0d20578be1 Mon Sep 17 00:00:00 2001
From: Dominik Titl <78549750+morning4coffe-dev@users.noreply.github.com>
Date: Sat, 9 Nov 2024 11:52:25 +0100
Subject: [PATCH 4/4] chore: Apply suggestions from code review
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Jérôme Laban
(cherry picked from commit 9aa0d33b935565a0c4d046b94f77cc75296322b3)
---
doc/articles/features/windows-ui-storecontext.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/articles/features/windows-ui-storecontext.md b/doc/articles/features/windows-ui-storecontext.md
index 1fe2b3bae908..c7ed2db5b65f 100644
--- a/doc/articles/features/windows-ui-storecontext.md
+++ b/doc/articles/features/windows-ui-storecontext.md
@@ -5,7 +5,7 @@ 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).
+> This article provides Uno Platform-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
@@ -15,7 +15,7 @@ The in-app review feature is currently supported on iOS and Android through Goog
#### References in a Single Project
-In Uno Platform Single Project, you'll need to add the `GooglePlay` [Uno Feature](xref:Uno.Features.Uno.Sdk#uno-platform-features) as follows:
+In an Uno Platform Single Project, you'll need to add the `GooglePlay` [Uno Feature](xref:Uno.Features.Uno.Sdk#uno-platform-features) as follows:
```xml