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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
560
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
150
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
270
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
130
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
国家プロジェクトを支える「さくらONE」 大規模LLM開発におけるGPU障害を乗り越えるクラスター運用戦略
gpuunite_official
0
160
会社紹介資料 / Sansan Company Profile
sansan33
PRO
24
430k
AI・HPC開発を支えるGPU環境の新しい選択肢 液冷GPUシステム「AquSys」の取り組み
gpuunite_official
0
150
案件に一番詳しいAIを Amazon Bedrock AgentCore で作る ― 知見が知見を生むチームへ / Compounding Knowledge with AgentCore
yusukeshimizu
1
160
自宅NWにISR4331を導入してみた話
okaits
0
120
コーチングの奥義 何もしないテクニック
jinwatanabe
0
140
AIにブラウザを触らせて、E2EテストをPlaywrightで書く
koji_kawamura
0
200
作って理解するCoding Agent 〜フレームワークに頼らないピュア Python での実装〜
takapy
1
120
FORENSIA: ローカルLLMフォレンジックハーネス
sumeshi
2
430
Bits Agent Builder の⼊⾨と活⽤事例
nulabinc
PRO
0
250
NANDでも描画したい!
nichica906
0
180
Go 1.27 の標準パッケージに uuid が入った!のでいろいろ喋る / go_127_std_go_uuid
convto
3
540
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.2k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Six Lessons from altMBA
skipperchong
29
4.4k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
ラッコキーワード サービス紹介資料
rakko
1
4.4M
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
260
Code Review Best Practice
trishagee
74
20k
Optimizing for Happiness
mojombo
378
71k
Producing Creativity
orderedlist
PRO
348
40k
Ethics towards AI in product and experience design
skipperchong
2
350
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