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

Error Domain=LineSDKInternalErrorDomain Code=3 "Cancel authentication." UserInfo={NSLocalizedDescription=Cancel authentication.} #14

Closed qiyer closed 7 years ago

qiyer commented 7 years ago

Error Domain=LineSDKInternalErrorDomain Code=3 "Cancel authentication." UserInfo={NSLocalizedDescription=Cancel authentication.}

How to fix it ? Thanks!

qiyer commented 7 years ago

Version of LINE iOS SDK that I use is 4.0.2 (My channel id is 1524215952) Login success by Safari ,and back to my app throw error: Error Domain=LineSDKInternalErrorDomain Code=3 "Cancel authentication." UserInfo={NSLocalizedDescription=Cancel authentication.}

test device: iphone 6 plus

mrmaakun commented 7 years ago

Hi @qiyer

Did you add the code to handle the return to your app in your app delegate?

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options
{
    return [[LineSDKLogin sharedInstance] handleOpenURL:url];
}

(https://developers.line.me/ios/development-with-sdk-v2#delegate)

qiyer commented 7 years ago

Thanks, i will try. I try again success.

qiyer commented 7 years ago

New problem, why iphone or ipad cann't login with line app in China (even if by vpn) ? We can only login through safari. Android can login with line app (with vpn).