I'm currently working on ao oauth implementation. So I've got a button which opens the browser and asks for the login information. Then this page redirects to the app using DeepLinking. The problem is that I cannot get the passed data from the website using the event listener.
componentDidMount() {
Linking.addEventListener('url', this.handleUrl);
}
componentWillUnmount() {
Linking.removeEventListener('url', this.handleUrl);
}
handleUrl(event) {
console.log(event); //I just dont get any console output
}
openAuth() {
Linking.openURL('https://dribbble.com/oauth/authorize?client_id=MY_ID&redirect_uri=Trippple://Login&state=MY_PW')
}