Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's New in LINE Front-end Framework

What's New in LINE Front-end Framework

Daisuke Shimizu
LINE UIT Department1 Product Manager / Front-end Engineer
https://linedevday.linecorp.com/jp/2019/sessions/B2-1

Avatar for LINE DevDay 2019

LINE DevDay 2019

November 21, 2019
Tweet

More Decks by LINE DevDay 2019

Other Decks in Technology

Transcript

  1. 2019 DevDay What's New in LINE Front-End Framework > Daisuke

    Shimizu > LINE UIT Department1 Product Manager / Front-end Engineer
  2. > LINE Front-end Framework (LIFF) > Web application • HTML,

    CSS, JavaScript > Integration with LINE platform • Authentication • User profile • Messaging API • JS SDK LIFF Overview
  3. History 2018 - 2019 LINE Things 2018.11 LIFF v1 released

    2018.6 LIFF v2 released 2019.10 LINE QUICK GAME 2018.9 In chat app 2018.5
  4. LIFF v1 liff.init( data => { //LIFF App initialization },

    err => { showAlert(err.message); } );
  5. LIFF v2 liff.init({ liffId: “{liffId}" }).then(() => { if (!liff.isLoggedIn())

    { //Redirect to LINE Login liff.login(); return; } //Show User Profile }).catch((err) => { window.alert(err.message); });
  6. liff.scanQR LIFF v2 JS SDK /* interface ScanCodeResult { value:

    string | null } liff.scanCode(): Promise<ScanCodeResult> */ liff.scanCode().then(result => { // result = { value: ‘https://linedevday.linecorp.com’} });
  7. > Select friends and groups and share message > Message

    types include images, videos, and flex messages > This API will be available soon liff.shareTargetPicker
  8. New APIs LIFF v2 JS SDK liff.isInClient liff.login / liff.logout

    liff.getLanguage liff.getDecodedIDToken liff.getFriendship liff.isLoggedIn
  9. Overview New features of LIFF v2 > Modern browser support

    > OpenID Connect > Bot_prompt Added with LINE Login v2.1 > https://liff.line.me/{liffId}/{path}?{query} > Universal link / Deeplink > Definition file TypeScript support Deeplink > liff.scanQRCode > liff.shareTargetPicker > Multipurpose APIs New APIs
  10. Easy Development Web application (HTML, CSS, JavaScript) Build applications including

    serverless Can be developed in the same way as a general web application
  11. No App Installation Required Works if LINE is installed Deeplink

    automatically handles various user environments
  12. Integrated With LINE Platform Profile API / Messaging API OpenID

    Connect, Bot Link New APIs (liff.scanCode, liff.shareTargetPicker, etc)