Create an webviews folder at the root of the project
Put an HTML file (eg webviews/map.html)
@Event('start')
start() {
@Format('webview', {
url: '/webview/map.html', // required
button: 'View map', // for other platforms,
fbHeight: 'full', // compact, tall or full (only for Messenger)
height: 600 // in pixels, only for chatbox
})
> Ok, here is the webview
}
Share button
On Facebook Messenger, NewBot ChatBox and Twitter, we can share content with the following code