--- title: "LINE integration" slug: "game-gamepot3-line-integration" updated: 2026-09-17T09:17:40Z published: 2026-09-17T09:17:40Z canonical: "guide.ncloud-docs.com/game-gamepot3-line-integration" --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # LINE integration Available in Classic and VPC This is a user guide for using the LINE login feature. For more information on LINE, see [LINE Developers](https://developers.line.biz/). ## iOS ### Set Info.plist 1. From project's TARGETS > Info > URL Types, add "line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER)." 2. Add "lineauth2" to the project's TARGETS > Info > Custom iOS Target Properties > "Queried URL Schemes." The following is an example of adding directly to Info.plist. | Key | Value | | --- | --- | | CFBundleURLSchemes | line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER) | | LSApplicationQueriesSchemes | lineauth2 | ``` // Info.plist CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLSchemes line3rdp.$(PRODUCT_BUNDLE_IDENTIFIER) LSApplicationQueriesSchemes lineauth2 ``` ### Swift Replace the code in the AppDelegate.swift method using the following code. ``` // AppDelegate.swift class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { ApplicationDelegate.shared.application( application, didFinishLaunchingWithOptions: launchOptions ) } func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { let sceneConfiguration = UISceneConfiguration(name: nil, sessionRole: connectingSceneSession.role) sceneConfiguration.delegateClass = SceneDelegate.self return sceneConfiguration } func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { ... // LINE login callback NotificationCenter.default.post(name: Notification.Name("LineLoginURL"), object: nil, userInfo: ["application": application, "url": url, "options": options, "type": "AppDelegate"]) ... return true } } class SceneDelegate: UIResponder, UIWindowSceneDelegate { func scene(_ scene: UIScene, openURLContexts URLContexts: Set) { guard let url = URLContexts.first?.url else { return } ... // LINE login callback NotificationCenter.default.post(name: Notification.Name("LineLoginURL"), object: nil, userInfo: ["url": url, "type": "SceneDelegate"]) ... } ``` ### Objective-C Replace and add the code in the AppDelegate.m method using the following code. ``` // AppDelegate.m #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... return YES; } - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options { ... // LINE login callback NSDictionary *userInfo = @{@"application": app, @"url": url, @"options": options, @"type": @"AppDelegate"}; [[NSNotificationCenter defaultCenter] postNotificationName:@"LineLoginURL" object:nil userInfo:userInfo]; ... return YES; } ``` Replace and add the code in the SceneDelegate.m method using the following code. ``` // SceneDelegate.m #import "SceneDelegate.h" @interface SceneDelegate () @end @implementation SceneDelegate - (void)scene:(UIScene *)scene openURLContexts:(NSSet *)URLContexts { NSURL *url = URLContexts.allObjects.firstObject.URL; if (!url) return; // LINE login callback NSDictionary *userInfo = @{@"url": url, @"type": @"SceneDelegate"}; [[NSNotificationCenter defaultCenter] postNotificationName:@"LineLoginURL" object:nil userInfo:userInfo]; } ```