User Guide

User Guide

Webview

WebView

WebView feature in messenger allows us to load web pages inside messenger. WebView can be setup for persistent menu, URL button inside a message and default actions on generic templates (cards and lists). To open a web page in WebView we must need to whitelist the domain first. The purpose of whitelisting the domains is to make sure that only trusted domains have access to the user’s information.

How to whitelist domains?

  1. Go to Settings > Whitelist domains from Main Menu
  2. Select Page
  3. Enter a valid domain URL. URL should start with a protocol identifier (like https://)
  4. Click on Save to whitelist a domain
  5. You can remove a whitelisted domain by clicking on ‘x’

How to set up a WebView on a URL button?

  1. Go to Broadcasting -> Broadcasts from Main Menu
  2. Click on ‘Create New’
  3. Choose a message component with buttons (text, card, media, gallery or list
  4. Click on ‘+Add Button’
  5. Enter a title and choose ‘Open a WebView’
  6. Enter a whitelisted domain and WebView size.
  7. Click on ‘Done’
  8. Fill the component fields
  9. Click on Next. Select Targeting and Send the broadcast
  10. The button click in messenger opens the web URL in a WebView

How to set up a WebView as a default action?

  1. Go to Broadcasting -> Broadcasts from Main Menu
  2. Click on ‘Create New’
  3. Choose a Card or a List
  4. Click on ‘+Add Action’
  5. Enter a title and choose ‘Open a WebView’
  6. Enter a whitelisted domain and WebView size
  7. Click on ‘Done’
  8. Fill the component fields
  9. Click on Next. Select Targeting and Send the broadcast
  10. The click on Card or List Item in messenger opens the web URL in a WebView

How to set up a WebView in a persistent menu?

  1. Go to Manage Pages -> Persistent Menu from Main Menu
  2. Click on ‘Menu Item’
  3. Choose ‘Open website’
  4. Click on ‘Open a WebView’
  5. Enter a whitelisted domain and WebView size
  6. Click on ‘Done’
  7. Save the menu
  8. The click on menu item in messenger will open the web URL in a WebView