- Windows 10
- VisualStudio 2017
- Windows SDK (10.17763.0)
- Node v8.11.3
- node-gyp
- clone repo into your project
cd path/to/project/<cloned-folder>
npm install
npm run build:electron
const electron = require('electron')
const remote = electron.remote
.
.
.
const windowsIAP = require('windows-IAP-bridge')
const StoreContext = new windowsIAP.StoreContext()
let hwnd = remote.getCurrentWindow().getNativeWindowHandle()
const storeContextResult = StoreContext.initialize(hwnd)
store.getAssociatedStoreProductsAsync(['Durable'], callback)
To package your application please use https://github.com/felixrieseberg/electron-windows-store, it lets you associate your application to the store product.
npm run build:dev
- set breakpoints in the C++ or JS code
- Press play on the debug tab, choose
windows-IAP-bridge
from the dropdown