If iPhone has been installed LINE app, it will automatically launch the LINE app to login on safari browser. However, after bringing back to the safari browser, the login doesn't succeed.
To Reproduce
Steps to reproduce the behavior:
Make sure you have LINE app installed
Go to the page and run the login with LINE. You can use either "popup" or "redirect". It will bring you to the LINE app to login.
After bringing back to safari, you will the login is not successful.
Expected behavior
Login can be successful.
Versions (please complete the following information):
I have been traced through the whole login process and found the possible root cause. The "popup" and "redirect" login style has different issues.
popup The popup closed detection is failed. (Source: here) When the LINE app is launched, meteor will think the popup has been closed and do the login process before LINE app authentication.
redirect After LINE app login, it will bring back to safari with a new tab. Meteor using sessionStorage for 'redirect' (Source: here), so it's not worked on different tabs.
Describe the bug
If iPhone has been installed LINE app, it will automatically launch the LINE app to login on safari browser. However, after bringing back to the safari browser, the login doesn't succeed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Login can be successful.
Versions (please complete the following information):
Additional context
I have been traced through the whole login process and found the possible root cause. The "popup" and "redirect" login style has different issues.
popup
The popup closed detection is failed. (Source: here) When the LINE app is launched, meteor will think the popup has been closed and do the login process before LINE app authentication.redirect
After LINE app login, it will bring back to safari with a new tab. Meteor usingsessionStorage
for 'redirect' (Source: here), so it's not worked on different tabs.Hope that this will give you some insights.