maitrungduc1410 / react-native-zalo-kit

Zalo SDK implementation for React Native
MIT License
46 stars 12 forks source link

Not working on android 11 or higher #34

Closed suupham2506 closed 1 year ago

suupham2506 commented 2 years ago

It crashes right away and throw this error. Permission Denial: starting Intent { act=android.intent.action.VIEW dat=https://oauth.zaloapp.com/... cmp=com.vnpay.abbank/.activity.WebActivity } from ProcessRecord{63c4246 2563:vn.kilo.kiloretailer/u0a933} (pid=2563, uid=10933) not exported from uid 10844

maitrungduc1410 commented 2 years ago

can you let me know which android version you're using?

suupham2506 commented 2 years ago

hich android version you're using?

I am using android 11, it crashes right when I login with zalo.

maitrungduc1410 commented 2 years ago

@suupham2506 can you try upgrade to version 4.0.1?

longquangpham90 commented 2 years ago

Plesae help me update readme.md version 4.0.1

maitrungduc1410 commented 2 years ago

@longquangpham90 no change from your developer perspective, so no change in README, needed

longquangpham90 commented 2 years ago

@maitrungduc1410 so i think, i have the same issue, but about for issue every mobile Android I can not get oauthCode I think because Zalo update v4 and library not change module success

maitrungduc1410 commented 2 years ago

from your side you don't ever need to use the oauthCode, in v4 we'll use access token, let me update my README a bit to clear this point

maitrungduc1410 commented 2 years ago

@longquangpham90 just updated my README, in Login method: https://github.com/maitrungduc1410/react-native-zalo-kit#login

But you probably never need to handle accessToken and refreshToken your self, it's already managed by the library