MobClub / New-Unity-For-ShareSDK

New sample of ShareSDK for Unity, including ios and android.
219 stars 154 forks source link

Wechat authorization issue #34

Open AlekseyLatkov opened 6 years ago

AlekseyLatkov commented 6 years ago

Sharing is working correctly, but ssdk.showUserHandler and ssdk.authHandler is never called after ssdk.Authorize(PlatformType.WeChat) so I cant get user info. (appid and appsecret was setted correctly). Can you help me with this issue?

dftty commented 6 years ago

I have tested ssdk.Authorize(PlatformType.WeChat) in Android platform recently, and success gets user info, if you were, I could give you some solutions.

JasonCheungX commented 6 years ago

@zhzyj please tell me how to get the wechat user authorize info.

JasonCheungX commented 6 years ago

I finally found a solution to make ssdk.showUserHandler and ssdk.authHandler get called. I replace the package name "cn.sharesdk.demo" in /Plugins/Android/ShareSDK/AndroidManifest.xml with my own project's package name, and also change the callback Activity's package name in /Plugins/Android/ShareSDK/libs/DemoCallback.jar, I used jarjar.jar to do this work.

MrTigerZhang commented 6 years ago

Can you speak Chinese?

WatchMan-Wang commented 4 years ago

WeChat sharing and authorization requires a callback jar package, you can contact the official technical support to help you generate this DemoCallback.jar