Slide 1

Slide 1 text

Deep Dive into LIFF v2 Jirawat Karanwittayakarn Tech Evangelist, LINE Thailand

Slide 2

Slide 2 text

2 LIFF LINE Front-End Framework

Slide 3

Slide 3 text

Multiple View Types Compact Full Tall

Slide 4

Slide 4 text

Get Profile ● userId ● displayName ● pictureUrl ● statusMessage

Slide 5

Slide 5 text

Send Messages ● Text ● Sticker ● Image ● Video ● Flex Message ● Audio ● Location ● Template Messages

Slide 6

Slide 6 text

Does it support in external browser?

Slide 7

Slide 7 text

Paint point in LIFF v1

Slide 8

Slide 8 text

What!

Slide 9

Slide 9 text

Say hello to LIFF v2 The Next Generation of LINE Front-End Framework

Slide 10

Slide 10 text

External Browser in LIFF v2

Slide 11

Slide 11 text

Modern Browser Supported

Slide 12

Slide 12 text

LINE Login v2.1 Integration

Slide 13

Slide 13 text

Email https://developers.line.biz/console/

Slide 14

Slide 14 text

Email liff.getDecodedIDToken().email

Slide 15

Slide 15 text

Bot Link Normal Aggressive

Slide 16

Slide 16 text

Enabling Bot Link LINE Login Tab LIFF Tab https://developers.line.biz/console/

Slide 17

Slide 17 text

Get Friendship liff.getFriendship().then(data => { if (data.friendFlag) { // Do something } })

Slide 18

Slide 18 text

Universal Link line://app/LIFF-ID https://liff.line.me/LIFF-ID

Slide 19

Slide 19 text

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

Slide 20

Slide 20 text

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!

Slide 21

Slide 21 text

Share Target Picker ● Share message to friends or groups ● Image, Video and Flex Message are available ● This API will coming soon

Slide 22

Slide 22 text

♥ LIFF v2

Slide 23

Slide 23 text

How to develop LIFF v2

Slide 24

Slide 24 text

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

Slide 25

Slide 25 text

Create a Login Channel https://developers.line.biz/console/

Slide 26

Slide 26 text

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

Slide 27

Slide 27 text

Create a LIFF app https://developers.line.biz/console/

Slide 28

Slide 28 text

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

Slide 29

Slide 29 text

Initialize LIFF with Login liff.init({ liffId: YOUR-LIFF-ID }).then(() => { if (liff.isLoggedIn()) { liff.getProfile() } else { liff.login() } }) 1 2

Slide 30

Slide 30 text

LIFF v2 Starter https://github.com/line/line-liff-v2-starter

Slide 31

Slide 31 text

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)

Slide 32

Slide 32 text

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

Slide 33

Slide 33 text

Publishing https:/developers.line.biz/console/

Slide 34

Slide 34 text

How to debug it?

Slide 35

Slide 35 text

vConsole A lightweight front-end developer tool for mobile web page. https://github.com/Tencent/vConsole

Slide 36

Slide 36 text

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()

Slide 37

Slide 37 text

One more thing...

Slide 38

Slide 38 text

LINE MINIAPP Publishing platform for apps developed by LIFF

Slide 39

Slide 39 text

Better Discoverable ● Listing in Services tab ● Searchable in LINE Search Shareable to friends or groups ● Deeplink sharing ● Flex Message sharing Feature Highlight

Slide 40

Slide 40 text

Pilot Launch with LINE ScaleUp

Slide 41

Slide 41 text

Thank You! @Jirawatee Tech Evangelist, LINE Thailand