Polarrco/windows-IAP-bridge

init fail

lubo08 opened this issue · 3 comments

in electron main.

const windowsIAP = require('windows-IAP-bridge');
const StoreContext = new windowsIAP.StoreContext();
let hwnd = win.getNativeWindowHandle();
const storeContext = StoreContext.initialize(hwnd);

after initialize it close window and do nothing.
What could be wrong?

OK. Looks like it could be used only on renderer process?

Same problem. If I make initialize in a renderer process, everything works fine.

Can you help wit example how pack it for renderer process? require in renderer add absolute path and I'm not able distribute it. Some webpack example?