Try LINE Login on iOS

The LINE Login iOS starter application lets you quickly see how LINE Login works on an iOS app. If you'd like to integrate LINE Login with your existing app, go to Integrate LINE Login.

Before you begin

Make sure you have completed the following:

Getting the starter app and SDK

  1. Clone the line-sdk-starter-ios-v2 repository.

    $ git clone https://github.com/line/line-sdk-starter-ios-v2.git
    
  2. To install the SDK, run the following command from either the LineSDKStarterObjC folder or LineSDKStarterSwift depending on whether you want to use the Objective-C or Swift sample app.

    $ pod install
    

Configuring your project

  1. Set the following values for your app in the "App settings" page of the console

    • iOS bundle ID: Bundle identifier of your app. Example: line.line-sdk-starter-objc-v2
    • iOS scheme: “line3rdp.” + bundle ID. Example: line3rdp.line.line-sdk-starter-objc-v2
  2. In your Xcode project's Info.plist file, set the channelID element in LineSDKConfig as your channel ID.

Running the app

Run the app using an iOS device or an emulator. When you first log in, you must agree to let the app access your profile information.

  • Tap the Login with LINE button to log in using app-to-app login. If the LINE app is installed on the device and you are logged in, you will be able to log in automatically without entering your LINE credentials.
  • Tap the Browser Login button to log in using a Safari web view. The LINE Login dialog opens in a web view where you can enter your LINE credentials (email and password) to log in.

Try out the features available on the LINE SDK for iOS

Once you have logged in to the app, you can tap the buttons to try out the following features of the LINE SDK.

  • Get user profile
  • Verify token
  • Refresh token
  • Log out

Next steps

You have now seen how LINE Login works in an iOS app. To learn more about how to integrate LINE Login with your existing iOS app, go to Integrating LINE Login with your iOS app.