cordova-plugin-wechat-example icon indicating copy to clipboard operation
cordova-plugin-wechat-example copied to clipboard

Authorization doesn't work

Open icekson opened this issue 9 years ago • 5 comments

Hi, I've tried this example on my android device and when I click to auth button nothing is heppen... In the logcat http://prntscr.com/8uh7xz I see that wrong activity is started (I think so) : com.tencent.mm.plugin.base.stub.WXEntryActivity instead of xu.li.test.cordova.plugin.wechat.wxapi.WXEntryActivity. Can you help me with this issue? I want to use xu.li.cordova.plugin.wechat in my project for users authorization, but it doesn't work at all. Thanks for the help

P.S. there is no any error in the log

icekson avatar Oct 23 '15 16:10 icekson

Did you use ionic or phonegap? Mac or Windows? Cordova version?

Ideally, there will be a script running after installation of this plugin. That script will copy the entry activity class to the correct directory and change the package name of that entry activity class.

Maybe you can take a look at that.

Thanks, Xu

xu-li avatar Oct 25 '15 13:10 xu-li

Did you use ionic or phonegap? Mac or Windows? Cordova version?

I use ionic 1.6.4 + cordova 5.3.3 + Windows (checked on Sony Z1 Android 5.1 and HTC One SV Android 4.2)

Ideally, there will be a script running after installation of this plugin. That script will copy the entry activity class to the correct directory and change the package name of that entry activity class.

Actualy all files are copied to right directory "platforms/android/src" (com.my-package.wxapi.WXEntryActivity for example or in case of your example project "xu.li.test.cordova.plugin.wechat.wxapi" http://prntscr.com/8vtvoj). Also I've checked AndroidManifest.xml, there is everything fine too http://prntscr.com/8vtwl4.

Have any thoughts why it doesn't work for me?

Thanks, Alexey

icekson avatar Oct 27 '15 09:10 icekson

Is your app approved by wechat team? In order to test it on android, you have to have your app approved by wechat team first.

Also, make sure the app id, package id and signature generated from app id and package id match the ones you submit when asking for approval.

-Xu

xu-li avatar Oct 27 '15 13:10 xu-li

similar issue +1

phanthinh avatar Oct 30 '16 13:10 phanthinh

same issue

tallprince avatar Apr 15 '17 18:04 tallprince