I'm looking for documentation on this and I'm not finding it.
The main things I need to accomplish are:
- Allow the user to purchase an add-on through the Microsoft Store.
- Determine if they've already purchased an add-on so the appropriate application features can be enabled.
These two things can be accomplished easily for a UWP app as described here: https://learn.microsoft.com/en-us/windows/uwp/monetize/enable-subscription-add-ons-for-your-app#code-examples
But I can't find an equivalent for .NET MAUI.
So in fact you can use the UWP code examples from Microsoft. The trick is to wrap everything that's Windows specific in a statement like this:
So my code looks like this:
I'll be modifying this some to suit my needs but I was able to debug it and step through the code to verify that the code is indeed executing as expected on Windows.