Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Gmail Add-on

This sample explores the possibility of an add-on to Gmail.

Gmail addon limitations

There are certain limitations that Gmail places on add-ons which constrain the functionality available, including:

  • add-ons not supported by Gmail IOS client (as of July 2018)
  • small set of UI components (e.g. no date picker, limited type-ahead capabilities)
  • no way to extend UI components


Using this sample requires you to build a Gmail add-on, the details of which I will not explore here. If you are interested in building a Gmail addon for Content Manager contact me (David Churchland) as I am happy to discuss my experiences building this sample. A summary of the setup is:

  • set-up a publically available Content Manager server (with Web Client and ServiceAPI installed)
  • secure your server using HTTPS and ensure it can be accessed using a domain name (not IP address)
  • configre Google authentication on your server
  • create a new Gmail addon (as per here)
  • paste the files appsscript.json and into the corresponding files in the addon project
  • update the URls in both files to match those of your ServiceAPI server
  • to test [install the unpublished app][] using the deployment id

Google authentication

To configure Google OAuth first follow the steps for the OAuth add-on, then:

  1. from your open App Scripts project select 'Resources > Cloud Platform Project'
  2. click the link to open the associated project
  3. fmom the menu choose 'APIs & services > credentials
  4. take note of the Client ID
  5. in the ServiceAPI web.config add the below XML inside the appSettings, inserting your client ID
   <add key="oauth.GoogleOAuthApp.ConsumerKey" value="[Client ID]"/>
   <add key="oauth.GoogleOAuthApp.ClientId" value="[Client ID]"/>