How can I get the source channel in LIFF APP ?

Right now, I'm going the way to setup URL with query param which is channel identity e.g. https://liff.line.me/LIFF_ID?channelId=CHANEL_ID

How can I get the source channel identity e.g. channel id, channel name by programmatically without passing query param as above ?

  • 0
  • 1
  • 396
  • twitter facebook

Hi Snorf,

You can get them by calling liff.getDecodedIdToken() after liff.init(). The value of "aud" in response corresponds to the channel ID. https://developers.line.biz/en/reference/liff/#get-decoded-id-token

  • 1



本当によろしいですか? question.vm