Closed qiyer closed 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
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)
Thanks, i will try. I try again success.
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).
Error Domain=LineSDKInternalErrorDomain Code=3 "Cancel authentication." UserInfo={NSLocalizedDescription=Cancel authentication.}
How to fix it ? Thanks!