facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 906 forks source link

After login is finished, some Chinese phones (OnePlus 7T and Xiaomi Redmi 4) fail to redirect to the page I want. #765

Open Chubek opened 4 years ago

Chubek commented 4 years ago

🐛 Bug Report

I use the LoginButton component with an async function to redirect the user to the Home page after the login is done. Like so:

<LoginButton permissions={[ 'email', /*'user_friends', 'user_gender', 'user_location', 'user_birthday', 'user_hometown',*/ 'public_profile', ]} onLoginFinished={(err, res) => this.onFaceBookLogin(err, res).then(() => { console.log('OnFaceBookLogin done.'); this.props.onSetRedirect(); this.props.navigation.navigate('Home'); this.props.onRedirect(); }) } />

As you can see I'm forcing it to redirect nemerous times. And one is enough, for almost all phones, except Xiaomi and OnePlus. And not all of them, oh no, some of them.

If this was my app I would not have cared but I'm getting paid to deliver a "quality" product so if you would please just ell me how I can get a glimpose of what's wrong that would be great. I don't have any of these phones and I can't test. My main AVD was a Genymotion Xiaomi. But I'm not sure why it won't work there. What could the issue be?

Thanks.