xu-li / cordova-plugin-wechat

A cordova plugin, a JS version of Wechat SDK
1.22k stars 509 forks source link

Capacitor can't get any response from Wechat.auth() #604

Open ngochiep30051998 opened 2 years ago

ngochiep30051998 commented 2 years ago

I migrate my app from cordova to capacitor. App redirected to native Wechat app, but I can't get a response for both Android and iOS. Please give me solution to solve this problem. Thanks. Here is my code: const scope = 'snsapi_userinfo'; const state = '_' + (+new Date()); Wechat.auth((response: any) => { console.log(response) }, (err: any) => { console.log(err) })

lijianyu1985 commented 2 years ago

I have this error two, did you fix it?

ngochiep30051998 commented 2 years ago

I still can't fix it.

yunter commented 2 years ago

wehcat reponse success, callback error: [Common] Snapshot request 0x283b50120 complete with error: <NSError: 0x283b415c0; domain: BSActionErrorDomain; code: 6>

ionic react v6 plugin version: "cordova-plugin-wechat": "^3.0.0"

Ong26 commented 2 years ago

Error still exists for ionic angular v6. "cordova-plugin-wechat": "^3.0.0",