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

Confirm template's postback is not sent correctly #2

Merged
merged 2 commits into from Oct 2, 2018

Conversation

furyutei
Copy link
Contributor

Text message 'undefined' was sent, when I pressed button of confirm template.

- text message 'undefined' was sent when pressed confirm template button
@kenakamu
Copy link
Owner

Thanks! May i know the confirm template data you sent to the simulator? This may be affect other place and in that case we want to fix it in one shot.

@furyutei
Copy link
Contributor Author

furyutei commented Sep 24, 2018

For example,

{
	"type": "template",
	"altText": "登録しますか?\n",
	"template": {
		"type": "confirm",
		"text": "登録しますか?\n",
		"actions": [
			{
				"type": "postback",
				"label": "はい",
				"data": "yes",
				"displayText": "はい"
			},
			{
				"type": "postback",
				"label": "いいえ",
				"data": "no",
				"displayText": "いいえ"
			}
		]
	}
}

In this case, when a control associated with this action is tapped, a postback event is returned(
although displayText is displayed on the application screen, a message event is not returned) in the real environment.

I'm sorry, my pull request was not enough, because it is not assumed when the type of action is "message".

- Supported when the action type is "message"
@kenakamu kenakamu merged commit e90fbd7 into kenakamu:master Oct 2, 2018
@kenakamu
Copy link
Owner

kenakamu commented Oct 2, 2018

Thanks!
Please check native-app branch as well, because I will update that branch only in the future

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

Successfully merging this pull request may close these issues.

None yet

2 participants