react-native-line icon indicating copy to clipboard operation
react-native-line copied to clipboard

Handling the redirect back to the app not working

Open thanhvu260696 opened this issue 1 year ago • 1 comments
trafficstars

  • React: "react": "18.2.0",
  • React Native: "react-native": "0.72.0",
  • React Native Line: "@xmartlabs/react-native-line": "^2.2.0",

Description

I followed the instructions but it doesn't work on iOS 17 iPhone 15 I hope your help

https://github.com/xmartlabs/react-native-line/assets/72533291/11e602d4-0726-4e16-ba8d-cae9ccb1cdde

Handling the redirect back to the app but it doesn't work

following is the sdk that i added Screenshot 2024-02-27 at 09 13 45

thanhvu260696 avatar Feb 27 '24 02:02 thanhvu260696

Hello @thanhvu260696, thanks for choosing the library and provide a video with the reproduction steps!

Seems that the library redirects to the app but, have you checked that you've received the access token properly in the login response? If that's the scenario you should authenticate the user to let them use the app. If there isn't an access token present in the response there's something wrong with the internal configuration.

Double-check the following steps from the official documentation: https://developers.line.biz/en/docs/line-login-sdks/ios-sdk/swift/setting-up-project/#linking-app-to-channel

If there are additional steps, probably you'd need to adapt it with obj-c as the documentation shows: https://developers.line.biz/en/docs/line-login-sdks/ios-sdk/swift/using-objc/

If all the configuration was done correctly, please provide additional debugging information to know exactly what is happening.

Hope this helps!

emibotti avatar Mar 11 '24 17:03 emibotti