Q&A

bug report!

Use liff.openWindow() couple times, LINE will be crash

problem create step:

  1. Use Flex Message to create button, and binding URI action to start web pageA in LINE ( line://app/xxxx )
  2. Web pageA call liff.openWindow() api to start pageB, still use line://app/xxxx for pageB.
  3. The pageB call liff.openWindow() to start pageA
  4. LINE will be crash immediate!
  • 0
  • 2
  • 3510
  • twitter facebook

In my case liff.closeWindow() isn't working, I am trying to do following:

  1. User adds friend
  2. webhook received, send liff app link in message
  3. user clicks and opens liff app, agrees to terms and conditions
  4. on agreement ajax request send tokenid to server to obtain name and profile picture
  5. response should display thank you and close window.

The problem is in last step, neither thank you message displays(using jquery) nor liff window closes itself.

no errors in console. shall i drop jquery and try pure javascript instead and what about liff.closeWindow() ?

  • 0

problem code:

  liff.openWindow(...);
  liff.closeWindow();

change to:

  liff.closeWindow();
  liff.openWindow(...);

the issue will be fix, I think liff.openWindow() maybe block process, so liff.closeWindow() not run, that make LINE crash...

  • 0

Similar posts

    No similar posts

Are you sure? question.vm