phithu / rn-zalo

A React Native Module for Zalo SDK
https://www.npmjs.com/package/rn-zalo
35 stars 19 forks source link

Library for android #1

Closed truongcoino1 closed 4 years ago

truongcoino1 commented 5 years ago

Error of me: Error: Không thể đăng nhập Zalo and when i click login button Zalo app show but screen show grant access and don't login zalo?. Pls fix for me or give me suggestions to fix this

gusonyang commented 5 years ago

Have you solved this problem?

truongcoino1 commented 5 years ago

issue of me: i built release for android library did not login?

Vào Th 2, 4 thg 11, 2019 vào lúc 21:01 Guson notifications@github.com đã viết:

Have you solved this problem?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phithu/rn-zalo/issues/1?email_source=notifications&email_token=AFQIXKAMMF6ZOQOE3PR2H43QSATLJA5CNFSM4IIT4LYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7KWNA#issuecomment-549366580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQIXKAOQ3JDI5IV4JLW3R3QSATLJANCNFSM4IIT4LYA .

webnah commented 4 years ago

trên oa có cần config: Callback Url gì không, clone và chạy android real device vẫn không login, thay appId tạo trong OA cũng không login, toàn redirect ngược

failed dòng này chăng? @ReactMethod public void login(final Promise promise) { ZaloSDK.Instance.unauthenticate(); final ReactApplicationContext activity = this.mReactContext; final String[] Fields = {"id", "birthday", "gender", "picture", "name"}; ZaloSDK.Instance.authenticate(this.mReactContext.getCurrentActivity(), LoginVia.APP_OR_WEB , new OAuthCompleteListener() {

Instance thành công nhưng khi get profile lại fail ZaloSDK.Instance.getProfile(activity, new ZaloOpenAPICallback() { không vào trong khi chạy debug android }

phithu commented 4 years ago

@truongcoino1 Please check 2.1.0

chellongCoder commented 4 years ago

I didn't get OAuth code on android, ios ok. :(

code2080 commented 4 years ago

@chellongCoder I fixed with this PR https://github.com/phithu/rn-zalo/pull/11. Check it out.