wechat-jssdk icon indicating copy to clipboard operation
wechat-jssdk copied to clipboard

Why the callback is not run

Open kyoa opened this issue 2 years ago • 2 comments

const wechatObj = new WechatJSSDK(config); wechatObj.initialize() .then(w => { console.log('wechatObj w: ', w);// deos not run //set up your share info, "w" is the same instance as "wechatObj" }) .catch(err => { console.error(err); });

I only get this log 'Wechat script loaded successfully!'.

kyoa avatar Jun 08 '22 09:06 kyoa

any working demo? you are in the browser or the wechat dev tools?

JasonBoy avatar Jun 09 '22 02:06 JasonBoy

Yes, I switched to weixin-js-sdk, that works

kyoa avatar Jul 12 '22 12:07 kyoa