after logging in it redirect the user to the redirect url in android that is set to google (ios is working fine)
<InstagramLogin ref={ref => (this.instagramLogin = ref)} appId='*******' appSecret='********************' redirectUrl='https://google.com/' scopes={['user_profile', 'user_media']} onLoginSuccess={this.setIgToken} onLoginFailure={(data) => console.log(data)} />
this is my code that i used for instagram login, but i am facing an issue that after entering credentials, user is redirected to chrome instead of coming back to app with response, can anyone please help me how can i solve this problem?
can you give me the video about this?
@TeamDlxx @hungdev
I figured out how to solve this issue.
instagram.js file, line: 51 if (url && url.startsWith(this.props.redirectUrl)) { this is always false because the URL starts with https://www.google.com and my redirectUrl is https://google.com. You need to add www everywhere