Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No context event is received when using liff.sendMessages() to send flex message - LINE integration #994

Open
Darrenlow83 opened this issue Feb 7, 2023 · 0 comments

Comments

@Darrenlow83
Copy link

Environment:
Language: NodeJS
Server: Node Express
Device: Huawei P20, iPhone 11

Description
When using liff.sendMessages() to send flex message on behalf of a user, the app context event is not being obtained

To Reproduce

  1. Open liff app
  2. Call liff.sendMessages() to send a flex message on behalf of user. For instance:
liff.sendMessages([
  {
    "type": "flex",
    "altText": "Game mode",
    "contents": {
      "type": "bubble",
      "body": {
        "type": "box",
        "layout": "vertical",
        "contents": [
          {
            "type": "text",
            "text": "Player 1 selected",
            "weight": "regular",
            "size": "md",
            "align": "center"
          },
          {
            "type": "text",
            "text": "C01",
            "weight": "bold",
            "size": "3xl",
            "align": "center",
            "offsetTop": "xxl"
          }
        ],
        "height": "130px"
      }
    }
  }        
]);
  1. Print context at the backend

Expected behavior
App context event should be captured when sending flex message via liff.sendMessages(). According to the LINE docs, webhook events contain the contentProvider.type property = external parameter when image message (flex) is sent using the liff.sendMessages() method, but it seems like this event is not being handled in the codes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant