line / line-sdk-starter-ios-v2

A starter application that demonstrates how to use LINE SDK for iOS.
MIT License
27 stars 9 forks source link

LINE Login Failed with Error: Error Domain=LineSDKInternalErrorDomain Code=1 "The operation couldn’t be completed. (NLChannelGatewayErrorDomain error 102.)" UserInfo={NSLocalizedDescription=The operation couldn’t be completed. (NLChannelGatewayErrorDomain error 102.)} #12

Closed arno608rw closed 7 years ago

arno608rw commented 7 years ago

LINE Login Failed with Error: Error Domain=LineSDKInternalErrorDomain Code=1 "The operation couldn’t be completed. (NLChannelGatewayErrorDomain error 102.)" UserInfo={NSLocalizedDescription=The operation couldn’t be completed. (NLChannelGatewayErrorDomain error 102.)}

mrmaakun commented 7 years ago

Hi @arno608rw

This comment in the line-sdk-starter-ios repository might be helpful.

https://github.com/line/line-sdk-starter-ios/issues/10#issuecomment-258736935

arno608rw commented 7 years ago

@mrmaakun URL Scheme required to be in the format of this? line3rdp.com.xxx.xxxx or line3rdp.${com.xxx.xxxx} It not work

arno608rw commented 7 years ago

SDK 3.x.x work! but SDK 4.0.2 not work and same error

mrmaakun commented 7 years ago

@arno608rw

it should be in the format line3rdp.${your bundle identifier}

So if your bundle identifier was "line.line-sdk-starter-objc-v2", your URL Scheme should be "line3rdp.line.line-sdk-starter-objc-v2".

mrmaakun commented 7 years ago

@arno608rw

The causes of this error are the same in 3.x.x and 4.0.2. Please check to see that you are using the bundle ID that you have registered in the Channel Console in your SDK 4.0.2 and that the user being used to log in is properly registered in the channel ROLES.

Have you tried using the Objective C starter application to log into SDK 4.0.2? If you set the Channel ID in Info.plist to your channel ID and register line.line-sdk-starter-objc-v2 as your iOS Bundle ID and line3rdp.line.line-sdk-starter-objc-v2 as your iOS Scheme in the Channel Console, it should work as is.

arno608rw commented 7 years ago

if i have Bundle ID xxx.yyy.zzz

screen shot 2560-06-21 at 10 07 07 am

arno608rw commented 7 years ago

I work on login by web but not work in app line

arno608rw commented 7 years ago

OK thank!! @mrmaakun It worked.

mrmaakun commented 7 years ago

@arno608rw Glad to hear.