xmartlabs / react-native-line

Line SDK wrapper for React Native 🚀
MIT License
121 stars 86 forks source link

how can I config Ios sdk param universalLinkURL? #119

Closed chenkuangkuang closed 1 year ago

chenkuangkuang commented 1 year ago

I noticed the param "universalLinkURL" in ios sdk config.

I tried to change the universalLinkURL to my website (Ofcourse I had config like this)

But it do not work well.

Line app open the url in browser (and alert that it can not handle):

https://access.line.me/oauth2/v2.1/login?returnUri=%2Foauth2%2Fv2.1%2Fauthorize%2Fconsent%3Fclient_id%3D{myChannelId}%26code_challenge_method%3DS256%26scope%3Demail%2520openid%2520profile%26redirect_uri%3Dline3rdp.${my app id}%253A%252F%252Fauthorize%252F%26nonce%3DCbwxNxzHt81Wv-Nzv9PzGaPPio1rJGXIjANzILybhs0%26code_challenge%3DDSwpRowfpdZiwvKeLSNSfEqp4VM1uDoHfTBeS5nbWIM%26bot_prompt%3Dnormal%26optional_redirect_uri%3Dhttps%253A%252F%252F${my website url}%26response_type%3Dcode%26sdk_ver%3D5.8.2%26state%3D5oCL8_zHv2JVesfWk-WQfSf5wSEvaGOv-UxV_QgCoFY&loginChannelId=${my channel id}&fromDomain=access-auto.line.me&line_auto_login_error=universal_link_error#/

What is the problem?

image
chenkuangkuang commented 1 year ago

Sorry. I wrote the wrong universal url(url requires a pathname).