# News: Articles for #iOS

New ID token verification endpoint released

When your back-end server receives an ID token originating from LINE Login v2.1 or the LINE SDK, you should verify that the ID token is authentic.

Previously, you had to use a JWT library (opens new window) or write your own decoding and verification code.

After this release, you merely have to send an HTTP request to the verification endpoint to determine if an ID token is authentic.

For instructions on verifying ID tokens, read Transfer ID token to back-end server.

LINE SDK v4.x end-of-life on December 12th, 2019

December 12th, 2019 marks the end-of-life date for LINE SDK v4.0 for Android and LINE SDK v4.1 for iOS (from hereon collectively called LINE SDK v4.x). On that date, we'll remove from this site the following things:

# Why we're doing this

To ensure a consistent, secure, up-to-date experience for LINE users, our partners' apps and services should use the latest version of our technology. We already marked LINE SDK v4.x as deprecated some time ago, but continued to offer documentation and download links as a courtesy to partners who couldn't upgrade on short notice. Now we're taking the next logical step: declaring LINE SDK v4.x end-of-life and removing all references from our site.

# Upgrading to a new SDK version

What you need to do to upgrade depends on what version you're currently using.

From To Notes
LINE SDK v4.x for iOS Objective-C LINE SDK v5.2 for iOS Swift The old and new versions use different programming languages, which makes migrating a big task. We hope the migration instructions in Upgrading the SDK will make it easier.
LINE SDK v4.x for Android LINE SDK v5.1 for Android There are minor differences between the old and new version, particularly with relation to how login works. The page Integrating LINE Login with your Android app explains how to integrate the latest version.
LINE SDK v3.x for iOS Objective-C LINE SDK v5.2 for iOS Swift There are major differences between the old and new version, meaning you'll have to redo your integration from scratch. See Integrating LINE Login with your iOS app for instructions.
LINE SDK v3.x for Android LINE SDK v5.1 for Android There are major differences between the old and new version, meaning you'll have to redo your integration from scratch. See Integrating LINE Login with your Android app for instructions.

LINE SDK 5.1.0 for iOS Swift released

We released the LINE SDK 5.1.0 for iOS Swift. Get the SDK from our GitHub repository (opens new window).

Changes:

  • Some model types support the Encodable protocol for easier serialization.
  • JSON conversion for Objective-C model wrapper classes is supported for future features.
  • You can get the raw ID token value for server verification.
  • Swift 5.0 and Xcode 10.2 are supported.

We won't stop looking for ways to make your coding life easier. Expect more improvements in future versions!

LINE SDK 1.0.0 for Unity released

We released the LINE SDK 1.0.0 for Unity.

The LINE SDK for Unity is a wrapper for our existing LINE SDKs for iOS and Android. This means you can now use the functionality offered by those SDKs in your Unity games.

Read our guide to learn more. In addition to the guide, we'll soon release a full reference for the methods available in the SDK.

LINE SDK 5.0.0 released

The LINE SDKs 5.0.0 for Android, iOS Swift, and iOS Objective-C have been released. For installation and usage instructions, see the following guides:

# Changes

# LINE Login v2.1 and Social API v2.1 are supported

You can set permissions to be granted to your app as scopes when users log in to your app with LINE Login. By setting scopes, you can get ID tokens when you get access tokens. Those tokens contain user information according to the scopes you set with the login request.

You can display an option to add your bot as a friend to users logging in to your app. You can get the friendship status between users and your bot with login responses and the Social API.

# New SDK version in Swift

Developed in Swift, the LINE SDK for iOS Swift provides a modern way of implementing LINE APIs. The LINE SDK 5.0.0 for iOS Objective-C is the last version of our Objective-C SDK.

# Open-source SDK

The LINE SDK for Android and iOS Swift are open-sourced. Visit the following repositories to check the provided code and samples.

# Detailed reference

Now you can access detailed reference based on the source code. For more information, see the following references:

LINE SDK for iOS 4.1.1 released

The LINE SDK for iOS version 4.1.1 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue that the LineSDKLogin object has the access token in cache even after logout.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS 4.1.0 released

The LINE SDK for iOS version 4.1.0 has been released. You can download the SDK from the following page.

Changes:

  • The web login process now uses a Safari View Controller instead of an external browser.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS CocoaPod released

We have released the LINE SDK for iOS on CocoaPods. You can now download the LINE SDK for iOS using CocoaPods for your Objective-C and Swift projects.

For information on how to download the SDK with CocoaPods, see the link below.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS 4.0.1 released

The LINE SDK for iOS version 4.0.1 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue which causes an authentication error when using Web Login.

We will continue to provide improvements so that developers can code more easily.

New versions of Web Login and the LINE SDK released

New versions of Web Login, LINE SDK for Android, and LINE SDK for iOS have been released. Details of each release are outlined below.

# Web Login v2

Key changes:

  • Endpoint URLs contain "v2" instead of "v1"
  • userId is returned in get user profile requests. mid is no longer returned in the response.
  • scope is returned with the default value of p for permission to get user profile information
  • error and state parameters are returned in error responses for authorization

For more information, see the updated documentation below.

You can also use the LINE Login starter application to help you get started with Web Login.

Note: Web Login v1 will be discontinued in January 2018. If you are using Web Login v1, please migrate to the Web Login v2 before that time.

# LINE SDK for Android 4.0.0

Key changes:

  • Implements the Auto Login feature using Chrome custom tabs, instead of app-to-app authorization
  • Automatically gets user profile information at login
  • Has a method to verify the access token
  • Has a method to refresh the access token
  • Has a method to log the user out

For more detailed information on how to use the LINE SDK for Android, see the updated documentation below.

Download the LINE SDK for Android

# LINE SDK for iOS 4.0.0

Key changes:

  • Automatically gets user profile information at login
  • Has a method to verify the access token
  • Has a method to refresh the access token
  • Has a method to log the user out

For more detailed information on how to use the LINE SDK for iOS, see the updated documentation below.

Download the LINE SDK for iOS

Note: The reference documentation for the LINE SDK for Android and iOS are currently only available in English.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS 3.2.2 released

The LINE SDK for iOS has been updated to version 3.2.2. You can download it from the LINE SDK archives on the following page:

Download LINE SDK

Changes:

  • Fixed an issue with bitcode.

We will continue to provide improvements so that developers can code more easily.

Change to requirement on whitelisting LINE domains

Whitelisting LINE domains is no longer a requirement for using the LINE SDK for iOS. As such, the documentation on whitelisting LINE domains found in the "Settings for iOS 9 or later" section has been removed.

The LINE SDK for iOS 3.2.1 released and the LINE starter application revised

The LINE SDK for iOS has been updated to version 3.2.1. You can download it from the LINE SDK archives on the following page:

Download LINE SDK

Changes

  • LineAdapter+Login.framework and LineAdapterUI.framework merged to LineAdapter.framework.
  • Definition changed for swift.

In addition, the LINE starter application has been revised to make compatibility with this version of SDK. You can clone or download it from the below GitHub repository.

https://github.com/line/line-sdk-starter-ios (opens new window)

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.17 released

The LINE SDK for iOS has been updated to version 3.1.17. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Fixed an issue where return error message is not correct when a token refresh request fails.
  • Fixed an issue with iOS 9 where authorization process is not canceled when the cancel button is tapped.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.15 released

The LINE SDK for iOS has been updated to version 3.1.15. You can download it from the LINE SDK archives on the following page:
Changes:
  • Fixed app-to-app authentication error on iOS9.
We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.14 released

The LINE SDK for iOS has been updated to version 3.1.14. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Fixed error when building for submission on Xcode 7.

We will continue to provide improvements so that developers can code more easily.

Settings for iOS 9 or later

For developers developing applications with the iOS 9 SDK, please use the following settings to ensure that your application works with iOS 9.

iOS - Settings for iOS 9 or later

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.13 released

The LINE SDK for iOS has been updated to version 3.1.13. You can download it from the LINE SDK archives on the following page:
Changes:
  • The "refreshWithResultBlock" method returns an error if the access token cannot be refreshed.
  • Minor bug fixes.
We will continue to provide improvements so that developers can code more easily.

LINE Starter Application for iOS and Android released

The LINE Starter Application for iOS and Android has been released. The LINE Starter Application provides examples to help you get started on integrating the LINE SDK into your application.

The sources can be found on the following links.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.12 released

The LINE SDK for iOS has been updated to version 3.1.12. You can download it from the LINE SDK archives on the following page:
Changes:
  • Added new endpoints for the LINE Platform.
  • Added “clearLocalLoginInfo" method to remove login information from local cache.
  • Added function allowing users to switch accounts from the WebView login.
  • Added the capability to retrieve SDK version on the LineAdaptor.
We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.10 released

The LINE SDK for iOS has been updated to version 3.1.10. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Modified to specify "kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlock" when storing to KeyChain.
  • Added the expiresDate property to the LineApiClient.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.9 released

The LINE SDK for iOS has been updated to version 3.1.9. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Can no longer be used with iOS 4.9 and lower.
  • Removed the JSONKit dependency; NSJSONSerialization will be used instead.
  • Fixed the bug where the SDK crashes when the refresh token is null.

We received a lot of feedback about the SDK crashing when using JSONKit in a 64-bit environment so we decided to remove the JSONKit dependency.

We will continue to provide improvements so that developers can code more easily.