-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No value return from Promise after logged in #6
Comments
Hey there! Can you give me any more details about your setup? You could try checking if you have all configs set properly, since Line requires a bit of setup on both iOS and Android and also on their own website. |
hi @mcousillas6 , Oops! I'm so sorry. I was too hurry to write, I didn't notice that I didn't put my environment info. 🙇 I just tested on my android platform only.
What I did.
My App can run and show my login screen, when I click login it will call my login function that contains code like this.
It can load and show a Line login website on my android simulator. I can login by using my Line id, and it shows an I think the onActivityResult is not called, i'm not sure i missed anything. My dependencies as below:
Thanks in advance! :) |
The problem is that you are using Expo. This means that you can't use dependencies that have native code on your project (like this one) unless you eject the project. You can try that, or you can also submit a request so expo adds the library to their system (so it works out of the box). Hope this helps. |
Hi @mcousillas6 I did eject the project before asking in this thread. If I didn't do that, why I can tell you that I did 2,3,4 and 5? |
Oh you're right, my bad. We've been using it with no issues on our apps, but without expo. I'll try to test it on a dummy project this week using expo to see if I can find the problem. I'll let you know as soon as I have any news. Sorry again for the misunderstanding. |
@mcousillas6 ok guys, I figured it out.. expo uses another method and class to register a callback. But now, i got a new issue. It seems like your logout method in Java is not correct. It didn't call |
Hey there! Glad to hear that you could fix the issue. Do you mind leaving here any references/links that you used to fix it? So other people also have the solution 😄 About the logout issue, you´re right. I have the fix on review #8 you can test that branch to see if that works for you. |
Hi there, Thank you! LineLogin.java Firstly add this code Change code from
to
and from
to
Cheers! |
Thanks for all the info! I´ll close the issue since you got everything working now. |
When clicked my button, It was redirected to Line. And after logged-in successful, it returned back to my application but no any value return.
Any suggestions, please?
Cheers!
The text was updated successfully, but these errors were encountered: