jodybrewster / react-native-linkedin-login

React Native Linkedin login
71 stars 42 forks source link

Login opens linkedin app and does nothing #18

Closed arisAlexis closed 7 years ago

arisAlexis commented 7 years ago

I am using the setup by the fork that works with react 0.35+ https://github.com/alma-connect/react-native-linkedin-login for android.

When I hit the login button the linkedin app seems to open momentarily but then does nothing. LinkedinLogin.login().then(user => { console.log('got user') }).catch((e) => console.log('error')); this line doesn't produce any output

Does anyone else experience this problem?

SerzN1 commented 7 years ago

Hi. Probably you don't init module or params wrong.

arisAlexis commented 7 years ago

Not really, all params are correct and the mobule is initialized as per documentation.

import LinkedinLogin from 'react-native-linkedin-login';

LinkedinLogin.init(
      'http://therecord.io',
      'client_id',
      'client_secret',
      'app_hash',
      [
        'r_emailaddress',
        'r_basicprofile'
      ]
    );

happens after a button click:

 LinkedinLogin.login().then((user) => {
      console.log('User logged in: ', user);
    })
    .catch((e) => console.log(e));

this outputs nothing on the console.

jodybrewster commented 7 years ago

Looking into it, sorry for the delay

jodybrewster commented 7 years ago

Updated the project with a working version