jodybrewster / react-native-linkedin-login

React Native Linkedin login
71 stars 42 forks source link

Waiting time before dialog "Download LinkedIn App" appears is too long. #28

Open dittmarconsulting opened 7 years ago

dittmarconsulting commented 7 years ago

Test app with the below packages has been installed on physical devices without Linkedin app installed.

"react": "16.0.0-alpha.12",
"react-native": "0.45.0",
"react-native-linkedin-login": "^1.44.1"

LinkedinLogin is initiated at componentDidMount and the LinkedinLogin.login is invoked on a button click

componentDidMount() {
    LinkedinLogin.init(['r_emailaddress', 'r_basicprofile'])
}

_btnClick() {
    LinkedinLogin.login()
        .then((user) => {
            console.log('User logged in: ', user)
        if(err) {
                console.log('ERROR login to Linkedin', err)
        })
}

The waiting time before the Install Linkedin app dialog appears is very arbitrary. It could be 6 seconds for the first time and up to 5 minutes for the consecutive times. That is a bad user experience.

I'm wondering whether the package could look up the url schema on the actual device to determine whether LinkedIn is installed or not to speed up the process.

anmolmayank commented 6 years ago

Can we have a feature as, When there is no app installed we can still login through an web and get what ever field required?

jacobbodkin commented 6 years ago

Has anyone found a solution to this?

jodybrewster commented 6 years ago

Sorry for the super long delay, I'm looking into adding a web fallback

melihberberolu commented 6 years ago

@jodybrewster Did you find any solution ?