# ニュース: #iOS の記事

2022/05/20

LINEミニアプリが「Siriからの提案」で表示されるようになりました

LINEミニアプリが、iPhoneの「Siriからの提案」で表示されるようになりました。

「Siriからの提案」とは?

ユーザーの習慣やアプリの使い方に基づいて、Siriがショートカットを提案したり、候補を提供したりする機能です。詳しくは『Appleサポート』の「iPhoneのSiriからの提案 (opens new window)」を参照してください。

# LINEミニアプリが「Siriからの提案」で表示される条件

以下の条件をすべて満たす場合、LINEミニアプリが「Siriからの提案」で表示されます。

  • ユーザーがiOS版のLINEを利用している
  • ユーザーが端末の設定で「Siriからの提案」をオンにしている
  • ユーザーがLINEの設定で「Siriショートカット」をオンにしている
  • ユーザーがLINEミニアプリを利用している
  • LINEのバージョンが12.7.0以降である

条件を満たした場合は、自動的に表示されるようになるため、LINEミニアプリを提供する事業者側の対応は必要ありません。反対に、「Siriからの提案」でのLINEミニアプリの表示を、事業者側が個別に無効にすることもできません。

2019/10/25

IDトークンを検証するエンドポイントが公開されました

LINEログイン v2.1やLINE SDKを使って取得したIDトークンを、ほかのバックエンドサーバーに送信して利用する場合は、バックエンドサーバーで受信したIDトークンをデコードして検証する必要があります。

これまでは、任意のJWTライブラリ (opens new window)を使ったり、独自にデコードして検証するコードを書いたりする必要がありました。

本日リリースされた新しいエンドポイントを利用すると、HTTPリクエストを送信するだけでIDトークンを検証できます。

詳しくは、「バックエンドサーバーにIDトークンを引き継ぐ」を参照してください。


2019/09/13

2019年12月12日にLINE SDK v4.xの提供を終了します

2019年12月12日に、LINE SDK v4.0 for AndroidおよびLINE SDK v4.1 for iOS(以降、LINE SDK v4.x)の提供を終了します。提供終了日に、以下の項目を削除する予定です。

# 提供を終了する目的

安全で最新の体験をLINEユーザーに提供するために、パートナーがアプリやサービスを開発する際は、私たちが提供する最新バージョンのLINE SDKを使用してください。すでに案内しているとおりLINE SDK v4.xは廃止予定のSDKですが、パートナーの利便性を図るために引き続きダウンロードリンク、ドキュメント、およびAPIリファレンスを提供し続けてきました。しかし、LINE SDK v4.xの提供を終了し、LINE DevelopersサイトからLINE SDK v4.xの情報を削除します。

# LINE SDKをアップグレードするには

LINE SDKをアップグレードする方法は、現在使用しているLINE SDKのバージョンによって異なります。

使用しているLINE SDK 使用するLINE SDK 注意
LINE SDK v4.x for iOS Objective-C LINE SDK v5.2 for iOS Swift 使用するプログラミング言語が変わることもあり、大変な作業になります。LINE SDKをアップグレードする手順について詳しくは、「SDKをアップグレードする」を参照してください。
LINE SDK v4.x for Android LINE SDK v5.1 for Android LINEログインの使用方法など、少しの違いがあります。新しいLINE SDKを使ってLINEログインを組み込む方法について詳しくは、「AndroidアプリにLINEログインを組み込む」を参照してください。
LINE SDK v3.x for iOS Objective-C LINE SDK v5.2 for iOS Swift この2つのバージョンには大きな違いがあるため、ゼロからLINEログインを組み込みなおしてください。詳しくは、「iOSアプリにLINEログインを組み込む」を参照してください。
LINE SDK v3.x for Android LINE SDK v5.1 for Android この2つのバージョンには大きな違いがあるため、ゼロからLINEログインを組み込みなおしてください。詳しくは、「AndroidアプリにLINEログインを組み込む」を参照してください。
2019/04/22

LINE SDK 1.0.0 for Unityの日本語版APIリファレンスがリリースされました

LINE SDK 1.0.0 for Unityの日本語版APIリファレンスがリリースされました。


2019/03/20

LINE SDK 1.0.0 for Unityの日本語版ドキュメントがリリースされました

LINE SDK 1.0.0 for Unityの日本語版ドキュメントがリリースされました。


2019/03/01

LINE SDK 5.1.0 for iOS Swiftがリリースされました

LINE SDK 5.1.0 for iOS Swiftがリリースされました。SDKはGitHubリポジトリ (opens new window)から入手できます。

変更点:

  • 一部のモデル型でEncodableプロトコルがサポートされ、シリアライズが簡単になりました。
  • 将来の機能追加のため、Objective-CモデルのラッパークラスのJSON変換がサポートされます。
  • サーバー検証のため、未加工のIDトークン値を取得できます。
  • Swift 5.0およびXcode 10.2がサポートされます。

さらに簡単にアプリ開発を進めていただけるよう、引き続きSDKの品質向上に努めていきます。

2019/02/26

LINE SDK 1.0.0 for Unityがリリースされました

LINE SDK 1.0.0 for Unityがリリースされました。

LINE SDK for Unityは、既存のLINE SDK for iOSおよびLINE SDK for Androidのラッパーです。これらのSDKの機能を、Unityで開発されたゲームで利用できるようになりました。

詳しくは、『LINE SDK for Unityドキュメント』を参照してください。このガイドは、近日中に日本語化されます。

上記のガイドに加えて、SDKで利用できるメソッドのリファレンスもリリースする予定です。


2018/12/13

LINE SDK 5.0.0の日本語版リファレンスがリリースされました

LINE SDK 5.0.0の日本語版リファレンスがリリースされました。


2018/11/29

LINE SDK 5.0.0の日本語版ガイドがリリースされました

LINE SDK 5.0.0の日本語版ガイドがリリースされました。

リファレンスも近日中に日本語化される予定です。

2018/11/20

LINE SDK 5.0.0がリリースされました

LINE SDK 5.0.0 for Android、LINE SDK 5.0.0 for iOS Swift、およびLINE SDK 5.0.0 for iOS Objective-Cがリリースされました。インストール方法と使い方については、以下のガイドを参照してください。これらのガイドは、近日中に日本語化されます。

# 変更点

# LINEログイン v2.1およびSocial API v2.1に対応

ユーザーがLINEログインを使ってアプリにログインするときに、アプリに許可する権限をスコープとして設定できます。これにより、アクセストークンの取得時に、ログインリクエストに設定したスコープに応じたユーザー情報を含むIDトークンを取得できます。

ログインするユーザーに対して、ボットを友だち追加するオプションを表示できます。ユーザーとボットの間の友だち関係は、ログインレスポンスやSocial APIを使って確認できます。

# Swiftで書かれた新しいSDK

Swiftで開発されたLINE SDK for iOS Swiftを使うと、最新の方法でLINEのAPIを実装できます。LINE SDK 5.0.0 for iOS Objective-Cは、Objective-C向けとしては最後のSDKです。

# オープンソース化

LINE SDK for AndroidおよびLINE SDK for iOS Swiftはオープンソース化されています。以下のリポジトリにアクセスして、提供されているコードやサンプルを確認できます。

# 詳しいリファレンス

ソースコードに基づいた、より詳しいリファレンスを利用できます。詳しくは、以下を参照してください。これらのリファレンスは、近日中に日本語化されます。

2018/04/13

LINE SDK for iOS 4.1.1がリリースされました

LINE SDK for iOS version 4.1.1がリリースされました。LINE SDKのダウンロードについて詳しくは、以下のリンクを参照してください。

変更点:

  • ログアウト後もLineSDKLoginオブジェクトにアクセストークンがキャッシュされたままになるという問題が解決されました。

さらに簡単にアプリ開発を進めていただけるよう、引き続きSDKの品質向上に努めていきます。

2018/01/29

LINE SDK for iOS 4.1.0がリリースされました

LINE SDK for iOS version 4.1.0がリリースされました。LINE SDKのダウンロードについて詳しくは、以下のリンクを参照してください。

変更点:

  • ウェブログインの実行時に、外部ブラウザではなくSafari View Controllerが使用されるようになりました。

さらに簡単にアプリ開発を進めていただけるよう、引き続きSDKの品質向上に努めていきます。

2017/03/22

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.


2017/01/27

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.


2017/01/24

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.

2017/01/10

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.

2016/12/13

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.


2016/10/07

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.

2015/12/22

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.

2015/11/06

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:

Resources - Download LINE SDK

Changes:

  • Fixed app-to-app authentication error on iOS9.

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

2015/10/08

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.

2015/09/15

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.


2015/08/31

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:

Resources - Download LINE SDK

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.

2015/08/17

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.

2015/08/06

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:

Resources - Download LINE SDK

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.

2014/12/22

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.

2014/12/18

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.