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

Buttons seemingly randomly appear or not when on Messenger on iOS #11

Open
duncsand opened this issue Mar 19, 2017 · 0 comments
Open

Buttons seemingly randomly appear or not when on Messenger on iOS #11

duncsand opened this issue Mar 19, 2017 · 0 comments

Comments

@duncsand
Copy link

duncsand commented Mar 19, 2017

My buttons action is:

buttons: {
    controller: (params, next) => {
        const buttonTitles = params.content.split(',');
        next().then(() => {
            params.bot.sendDefaultButtonMessageTo(buttonTitles, params.update.sender.id, 'Please select an option or type in your own');
        });
        return '';
    },
},

When I send it the following:

Hello<buttons>one,two</buttons>

then the buttons seemingly randomly appear or not in Messenger on iOS. It seems more reliable on the web - but more often than not it fails in Messenger on mobile. There's a weird graphical glitch when the messages do appear that makes me suspicious it's a timing issue.

I know that Messenger will ignore quick-reply buttons by design if you send another message after they've been displayed. This makes sense - the quick-reply don't persist past new messages. I suspect that the hello or 'please select an option' messages are getting to Messenger after the button message and therefore the buttons get removed.

NOTE: I originally thought this was related to use of the <pause> tag, but I've not verified the issue occurs without that tag.

@duncsand duncsand changed the title Buttons seemingly randomly appear or not when used in conjunction with pause tag Buttons seemingly randomly appear or not when on Messenger on iOS Mar 19, 2017
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