Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Deep Dive into LIFF v2
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
LINE Developers Thailand
December 12, 2019
Technology
680
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Deep Dive into LIFF v2
LINE Developers Thailand
December 12, 2019
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
Unlocking the Power of AI Agents with LINE Bot MCP Server
linedevth
0
550
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
140
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
260
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
120
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
130
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
150
LINE Group Bot by Zwiz.AI
linedevth
0
190
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
210
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
320
Other Decks in Technology
See All in Technology
害獣害虫を自動判別! ペストコントロール支援ビジネス成功のヒント【SORACOM Discovery 2026】
soracom
PRO
0
130
論語・武士道・産業革命から見る かわるもの、かわらないもの
ichimichi
8
1.9k
AI工学特論: MLOps・継続的評価
asei
11
3.1k
AI驚き屋発見器
yama3133
1
390
大 AI 時代におけるC# の事情 ~ぶっちゃけトークを交えながら~
nenonaninu
1
560
AI エージェント時代のデジタルアイデンティティ
fujie
1
1.2k
AIQAのナレッジ構築について
qatonchan
1
130
データ活用研修 データマネジメント【MIXI 26新卒技術研修】
mixi_engineers
PRO
4
810
テックカンファレンス三大ステークホルダーの文化人類学 ─ 違いを認め合う関係性作り
bash0c7
5
1.3k
現場で使える AWS DevOps Agent 活用ノウハウ - Release Management 機能の検証結果を添えて / AWS DevOps Agent Release Management and Know-How
kinunori
5
810
CloudWatchから始めるAWS監視
butadora
0
300
最新IoT事例11選に学ぶ!現場の成功パターンと実践のコツ【SORACOM Discovery 2026】
soracom
PRO
0
120
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
490
Speed Design
sergeychernyshev
33
2k
Google's AI Overviews - The New Search
badams
0
1.1k
How to Ace a Technical Interview
jacobian
281
24k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
The SEO identity crisis: Don't let AI make you average
varn
0
520
RailsConf 2023
tenderlove
30
1.5k
The Curse of the Amulet
leimatthew05
2
13k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
340
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Design in an AI World
tapps
1
270
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
450
Transcript
Deep Dive into LIFF v2 Jirawat Karanwittayakarn Tech Evangelist, LINE
Thailand
2 LIFF LINE Front-End Framework
Multiple View Types Compact Full Tall
Get Profile • userId • displayName • pictureUrl • statusMessage
Send Messages • Text • Sticker • Image • Video
• Flex Message • Audio • Location • Template Messages
Does it support in external browser?
Paint point in LIFF v1
What!
Say hello to LIFF v2 The Next Generation of LINE
Front-End Framework
External Browser in LIFF v2
Modern Browser Supported
LINE Login v2.1 Integration
Email https://developers.line.biz/console/
Email liff.getDecodedIDToken().email
Bot Link Normal Aggressive
Enabling Bot Link LINE Login Tab LIFF Tab https://developers.line.biz/console/
Get Friendship liff.getFriendship().then(data => { if (data.friendFlag) { // Do
something } })
Universal Link line://app/LIFF-ID https://liff.line.me/LIFF-ID
Path and Query Parameter https://developers.line.biz liff://app/1234567890-XXXXXXXX https://liff.line.me/1234567890-XXXXXXXX/console/?param=value https://developers.line.biz/console/?param=value
QR Code Reader Platform Version iOS On version 9.19.0 and
later, liff.scanCode() is temporarily unavailable. Android Not affected for now * liff.scanCode() in Android supports any kind of text result by Today!
Share Target Picker • Share message to friends or groups
• Image, Video and Flex Message are available • This API will coming soon
♥ LIFF v2
How to develop LIFF v2
Steps to develop LIFF v2 1. Create Provider and Login
Channel 2. Create a LIFF app 3. Develop a Website 4. Deploy 5. Update Endpoint URL and Publish
Create a Login Channel https://developers.line.biz/console/
Steps to develop LIFF v2 1. Create Provider and Login
Channel 2. Create a LIFF app 3. Develop a Website 4. Deploy 5. Update Endpoint URL and Publish
Create a LIFF app https://developers.line.biz/console/
Steps to develop LIFF v2 1. Create Provider and Login
Channel 2. Create a LIFF app 3. Develop a Website 4. Deploy 5. Update Endpoint URL and Publish
Initialize LIFF with Login <script src="https://static.line-scdn.net/liff/edge/2.1/sdk.js"></script> <script> liff.init({ liffId: YOUR-LIFF-ID
}).then(() => { if (liff.isLoggedIn()) { liff.getProfile() } else { liff.login() } }) </script> 1 2
LIFF v2 Starter https://github.com/line/line-liff-v2-starter
Steps to develop LIFF v2 1. Create Provider and Login
Channel 2. Create a LIFF app 3. Develop a Website 4. Deploy 5. Update Endpoint URL and Publish (HTTPS is required)
Steps to develop LIFF v2 1. Create Provider and Login
Channel 2. Create a LIFF app 3. Develop a Website 4. Deploy 5. Update Endpoint URL and Publish
Publishing https:/developers.line.biz/console/
How to debug it?
vConsole A lightweight front-end developer tool for mobile web page.
https://github.com/Tencent/vConsole
LIFF v2 Cheat Sheet liff.init() SETUP & INIT COMMON APIs
liff.getOS() liff.getLanguage() liff.getVersion() liff.isInClient() AUTH APIs liff.isLoggedIn() liff.login() liff.logout() liff.getAccessToken() liff.getDecodedIDToken() liff.getContext() HTTP APIs liff.getProfile() liff.sendMessages() liff.getFriendship() CLIENT APIs liff.openWindow() liff.closeWindow() liff.scanCode() PERMANENT LINK liff.permanentLink.createUrl() liff.permanentLink.setExtraQueryParam()
One more thing...
LINE MINIAPP Publishing platform for apps developed by LIFF
Better Discoverable • Listing in Services tab • Searchable in
LINE Search Shareable to friends or groups • Deeplink sharing • Flex Message sharing Feature Highlight
Pilot Launch with LINE ScaleUp
Thank You! @Jirawatee Tech Evangelist, LINE Thailand