capacitor-community / electron

Deploy your Capacitor apps to Linux, Mac, and Windows desktops, with the Electron platform! 🖥️
https://capacitor-community.github.io/electron/
MIT License
335 stars 59 forks source link

Windows In-App Purchase Not Working From Electron Application #195

Open venkatsan opened 2 years ago

venkatsan commented 2 years ago

Describe the bug Windows In-App Purchase Not Working From Electron Application

To Reproduce

We have written C# methods to connect Microsoft store, get the list of product add ons and purchase product. After that convert those methods into .DLL library and consume those things from the electron application.

We are successfully getting list of product add ons and other required things from the electron application by using .DLL library. But when trying to purchase subscription from electron application getting below error .

image

Expected behavior Can able to purchase from electron application

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context N/A

jdgjsag67251 commented 2 years ago

From what I gather from the screenshot this seems to be an issue with your C# code (specifically CoreApiUtility.cs:39). I guess you are calling a function, from within some thread, that requires it to be executed on the main thread. If you believe this to be an issue with this repository, could you share some of your code to help diagnose the issue?