Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20201017LIFF workshop at meichu
Search
LINE Developers Taiwan
PRO
October 17, 2020
Programming
0
37k
20201017LIFF workshop at meichu
20201017 梅竹黑客松賽前工作坊 with Coke
LINE Developers Taiwan
PRO
October 17, 2020
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
NTUAI企業參訪
line_developers_tw
PRO
0
1.9k
Data TECH FRESH企業參訪- Amber
line_developers_tw
PRO
0
3.6k
Data Team 實習分享
line_developers_tw
PRO
0
4.1k
Backend Intern之旅
line_developers_tw
PRO
0
7.3k
清大企業參訪- Ben
line_developers_tw
PRO
0
1.6k
LLM 商品規格萃取大冒險- Vila
line_developers_tw
PRO
0
1.4k
Playwright/MCP/AI -Winter
line_developers_tw
PRO
0
1.4k
LINE EC Product Catalog Development- Rei
line_developers_tw
PRO
0
1.4k
LINE 與 AI 機器人技術應用現況
line_developers_tw
PRO
0
24
Other Decks in Programming
See All in Programming
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
140
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
39
26k
Deno Tunnel を使ってみた話
kamekyame
0
250
AI Agent Tool のためのバックエンドアーキテクチャを考える #encraft
izumin5210
4
1.3k
Basic Architectures
denyspoltorak
0
120
Navigating Dependency Injection with Metro
l2hyunwoo
1
190
愛される翻訳の秘訣
kishikawakatsumi
3
350
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
300
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
460
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.4k
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
0
190
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
210
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Chasing Engaging Ingredients in Design
codingconduct
0
84
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
260
Automating Front-end Workflow
addyosmani
1371
200k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
First, design no harm
axbom
PRO
1
1.1k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
400
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
120
AI: The stuff that nobody shows you
jnunemaker
PRO
1
24
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.7k
We Are The Robots
honzajavorek
0
120
Transcript
LIFF LINE Front-end Framework 1 LINE UIT Chien Cheng Yi
(Coke)
LINE UIT TEAM • User Interface Technology a.k.a Frontend •
Covert business idea to real idea • Work with Japan, Korea, Thailand, Vietnam and China teams 2 JAPAN TAIWAN THAILAND KOREA VIETNAM CHINA
LINE UIT TEAM Products 3
LIFF LINE Front-end Framework • Combine your app with LINE,
all together • LIFF is a platform make your web apps easily to be integrated into LINE app 4
Agenda • LIFF Introduction • Start first LIFF app •
LIFF Starter • Heroku • LINE Dev Console • LINE Flex message • Workshop • LIFF MEME • LIFF Campaign Invite 5
LIFF Intro • Web application • HTML, CSS and Javascript
• Integrate with LINE platform • LINE login • User Profile • Message API • JS SDK 6
Start first LIFF app 7
LINE LIFF Starter https://github.com/line/line-liff-v2-starter https://github.com/line/line-liff-v2-starter https://github.com/line/line-liff-v2-starter 8
LINE LIFF Starter Deploy 9
Heroku Create the 10
Heroku 11
Heroku Create New App 12
OOPS! 13
LINE Dev Console Create Channel, Create LIFF 14
LINE Dev Console Create Provider, Create Channel, Create LIFF •
https://developers.line.biz/console/ 15
LINE Dev Console Create Channel 16
LINE Dev Console Create Channel • Channel Type • LINE
Login • Provider • Channel Name • Channel Description 17
Channel Name Provider Channel Desc Chat Room Click 設定 ->
我的帳號 -> 連動中的應⽤程式 18
LINE Dev Console Create LIFF 19
Create LIFF Scope • profie (user profile) • openid (user
id) • chat_message.wrirte • liff could send a message 20
Create LIFF Size 21
Create LIFF 22
Create LIFF Bot Link Feature 23
Create LIFF Module mode (Only show when size is “Full”)
• Disable • Show the share button • Enable • Hide the share button 24
Create LIFF 25
26
27 https://engineering.linecorp.com/zh-hant/blog/new-liff-url-infomation/
Create LIFF Copy LIFF ID Copy LIFF ID 28
Back to Heroku 29
Heroku Set LIFF ID 30
Heroku Set LIFF ID 31
Yeah! 32
Heroku How to Deploy 33
Wait a moment 34
35
LIFF Starter 練習 • 在⼿機上開啟liff url (https://liff.line.me/…) 查看是否為liff web view
• 使⽤ 到聊天室 • 參考 https://developers.line.biz/en/reference/liff/#client-api • 使⽤ • Deploy到Heroku liff.permanentLink.createUrl() liff.sendMesssage() 36
LINE Flex Message 37
LINE Flex Message 38
LINE Flex Message • Messages with a customizable layout •
LIFF can send flex by using 39 liff.sendMesssage() liff.shareTargetPicker() •Target picker is supported on 10.3.0 or later for both LINE for iOS and LINE for Android.
LINE FLEX Message Simulator https://developers.line.biz/flex-simulator/ 40
LINE Workshop 41
Fork Repo https://github.com/cichien/liff-workshop-demo 42
43 Deploy new app in Heroku
44 Create new LIFF app
How to Develop • git clone https://github.com/xxxx/xxxx • npm install
• cp .env.example .env • set MY_LIFF_ID=${your liffId} • npm run dev • visit https://localhost:8000 45
How to Login LIFF in localhost • Run https in
localhost • ngrok • Self-signed certificate in localhost (Do not use it in production !!!) • Create the liff app for localhost 46
git checkout liff-meme 47
LIFF MEME 48
liff.isApiAvailable() 49 if (liff.isApiAvailable('shareTargetPicker')) { //.... } else { alert('你的
LINE App 暫時不⽀援 Share Target Picker ,將開始外部瀏覽器。'); liff.openWindow({ url: "{{.LIFFRedirectURL}}", external: true }); }
git checkout liff-campaign 50
LIFF Campaign Invite 51
Campaign API • https://reurl.cc/VXWxjZ • 建立活動 • 參加活動 • 取得活動參加結果
52
liff.state • https://liff-workshop-demo.herokuapp.com/? liff.state=%2Fresult.html%3FcampaignId%3D32 • https://liff-workshop-demo.herokuapp.com/result.html?campaignId=32 53
liff.state • Show Loading animation • Redirect by your server
54 if (new URL(location).searchParams.get('liff.state') !== null) { document.body.style.display = 'none' //... } •
Q & A 55