line / line-sdk-android

LINE SDK for Android lets you integrate LINE into your Android app to create a more engaging experience for your users.
https://developers.line.biz/en/docs/android-sdk/
Apache License 2.0
134 stars 45 forks source link

SDK authorization login successful without returning to the application #171

Open zhaohang-soul opened 3 months ago

zhaohang-soul commented 3 months ago

What did you do?

Using linesdk for third-party authorization login

What did you expect?

After successful authorization login, return to the application and execute the login logic in the onActivityResult method

What happened actually?

After successfully logging in with SDK authorization, I still stay on the Line main interface and have not returned to my application

Your environment?

Android15,linesdk:5.8.0&linesdk:5.10.1

YkSix commented 3 months ago

@zhaohang-soul , Thanks for reporting this issue.

I couldn't reproduce this issue using below setting:

  1. Android 15 emulator: Pixel 8 Pro
  2. LINE SDK v5.10.1 and LINE App v14.11
  3. LINE SDK sample app (current repo)

Could you provide more details on:

  1. Will it happen in LINE SDK sample app on your side?
  2. What's the LINE App version you used? Will LINE App's latest version (ex: v14.10 or v14.11) solve this issue?
  3. Does it work on Android 14 and below? If not, please provide Android version and the device you use. Thanks.
  4. What's the Android 15 device you used?
  5. The other reporter mentioned cocos creator, did you also use cocos creator? Reference issue: https://github.com/line/line-sdk-android/issues/141
  6. When that happened, did login succeed when you opened your application manually?

    I still stay on the Line main interface and have not returned to my application

Many thanks.

zhaohang-soul commented 3 months ago

@YkSix Thank you for your answer Here are some detailed information: 1.no 2.Line app version is v14.10,not fix this issue 3.Android 14 and below did not reproduce this issue 4.The device used is our company's first project adapted to Android 15 5.not use 6.When this situation occurs, there are two scenarios: (1)Click the back button to return to the login page for successful login; (2)Click the home button to return to the desktop and then open the login page, but cannot log in successfully

zhaohang-soul commented 3 months ago

@YkSix I have updated the device version of our company,Encountered a new problem 403 forbidden error occurred when logging in with linesdk authorization,it is also happend in LineSDK sample 403_forbidden

line_login_403error

YkSix commented 3 months ago

@zhaohang-soul , Thanks for providing detail info. I also was wondering:

  1. Because Android 15 is not officially released yet, what beta version of Android 15 did you use? Was it Beta 3.1? https://developer.android.com/about/versions/15/release-notes
  2. Will this issue happen on emulator of Android 15? Emulator image version: Google Play ARM 64 v8a System Image, Revision 6? I don't have a physical device with Android 15, so I'm using an emulator to reproduce it.

Thanks.

zhaohang-soul commented 3 months ago

@YkSix 1.is not Bata3.1,it is Android V FRC release 2.Login to Line on Android 15 emulator prompts inability to connect to Line service I uploaded a log at 13:06 regarding the issue of Linesdk not being able to automatically return to the login page after successful authorization;Please help take a look. Thank you APLog_2024_0716_130559__1.zip

zhaohang-soul commented 3 months ago

@YkSix Is there log output and switch control in the SDK

zhaohang-soul commented 3 months ago

image The code has been returned at this point, is there any good adaptation method