Skip to content

RequestRateAndReviewAppAsync is broken #10755

@Marv51

Description

@Marv51

Describe the bug

When I call RequestRateAndReviewAppAsync a native crash occurs.

Why is this important?

APIs should work without crashing. Without this APIs users can not be asked to leave a review for an app.

Steps to reproduce the bug

Install latest WinAppSDK and create an empty C# app.

var context = StoreContext.GetDefault();
var hwnd = WinRT.Interop.WindowNative.GetWindowHandle(((App)App.Current).MainWindow);
WinRT.Interop.InitializeWithWindow.Initialize(context, hwnd);
var result = await context.RequestRateAndReviewAppAsync();

Actual behavior

Exception thrown at 0x00007FFB3BEF6104 (Windows.ApplicationModel.Store.dll) in Project-Quick-Open.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

I believe there are no public symbols for this dll, so more details are difficult to provide.

Expected behavior

If an error occurs that error should be returned. No fatal Access violation.

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7.3: 1.7.250606001

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageIssue needs to be triaged by the area owners

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions