Skip to content
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

Win32 converted with Desktop Bridge purchase failed. #1

Open
bvp898 opened this issue Sep 15, 2020 · 6 comments
Open

Win32 converted with Desktop Bridge purchase failed. #1

bvp898 opened this issue Sep 15, 2020 · 6 comments

Comments

@bvp898
Copy link

bvp898 commented Sep 15, 2020

Hi, I tried this project and always got "Purchase Finished with status NotPurchased" after binded with my app id on Store and converted with Desktop Bridge , the purchase dialog dose not show up.

I have created tow minimal projects to reproduce the problem.
You can download from github https://github.com/bvp898/UWP_DesktopBridge_Purchase.git
The shared code Store.cs is copied from microsoft's document.

Project Purchase_UWP is a UWP project, work fine.
Project Purchase_NetDestop is a Win32 project, converted with Desktop Bridge. It always return "The purchase did not complete. The customer may have cancelled the purchase. ExtendedError: ", and the purchase dialog dose not show up.

Please help me with the problem, I need to add purchase for subscription in Win32 app.

@bvp898
Copy link
Author

bvp898 commented Sep 15, 2020

I have narrowed down the problem.
Computer with windows 10.0.17134.1246 got this Win32 converted with Desktop Bridge purchase failed problem.
Computer with windows 10.0.18362.1082 work fine.
Is that a bug of system?
Which version of Win10 fixed this bug?

@bvp898
Copy link
Author

bvp898 commented Sep 15, 2020

I tested in Virtual machine with Windows 10.0.18362.1082, the problem still exist. Don't know why one of my computer worked.
I am buiding with target versioin 19041.
Below is the error log. (Store have been logined in, ExtendedError is empty)

info:Windows::Services::Store::StoreContext::RequestPurchaseAsync(9P28P93430J0) invoked. (CV:HelkHwlJxEmd+tei.2.7) [Windows::Services::Store::StoreContext::RequestPurchaseAsync]
ModLoad: 000000006b300000 000000006b35d000 C:\Windows\SysWOW64\CoreShellAPI.dll
:jsonRequest: {"StoreId":"9P28P93430J0","ParentProductId":"9NLVZ8WTBGW1","HasPreviewCapability":true,"Version":"3","InvokedApi":"RequestPurchase","UserId":"00037FFEBA565603","DeviceContext":"moId=Public&oemId=Public&scmId=Public","CV":"HelkHwlJxEmd+tei.2.7.1.2.1"} [Windows::Services::Store::PurchaseOperation::_Purchase]
ModLoad: 000000006b280000 000000006b2ff000 C:\Windows\SysWOW64\twinui.appcore.dll
:jsonResponse: {"purchaseStatus":"NotPurchased"} [Windows::Services::Store::PurchaseOperation::_Purchase]
The purchase did not complete. The customer may have cancelled the purchase. ExtendedError:

@bvp898
Copy link
Author

bvp898 commented Sep 15, 2020

https://techcommunity.microsoft.com/t5/windows-dev-appconsult/enable-in-app-product-purchases-for-desktop-bridge-converted/ba-p/316901

Hi, the problem have been narrowed down.
If I right click the app at start menu -> more -> run as administrator, the problem will reproduce on my computer with Windows 10.0.18362.1082.
As the article above pointed out,
[Don’t run app with admin privilege, otherwise may not see the purchase diaglog box popup.]
But how can I keep my app run without admin privilege at all kinds of computers.

@marck0zz
Copy link

have you been able to find an answer?

too bad microsoft/windows doesn't have a sec to answer this.

@bvp898
Copy link
Author

bvp898 commented Apr 14, 2021 via email

@bvp898
Copy link
Author

bvp898 commented Apr 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants