Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization doesn't work #10

Open
icekson opened this issue Oct 23, 2015 · 5 comments
Open

Authorization doesn't work #10

icekson opened this issue Oct 23, 2015 · 5 comments

Comments

@icekson
Copy link

icekson commented Oct 23, 2015

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

@xu-li
Copy link
Owner

xu-li commented Oct 25, 2015

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

@icekson
Copy link
Author

icekson commented Oct 27, 2015

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

@xu-li
Copy link
Owner

xu-li commented Oct 27, 2015

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

@phanthinh
Copy link

similar issue +1

@tallprince
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants