init fail
lubo08 opened this issue · 3 comments
lubo08 commented
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?
lubo08 commented
OK. Looks like it could be used only on renderer process?
kirillgalushko commented
Same problem. If I make initialize in a renderer process, everything works fine.
lubo08 commented
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?