You’ll probably want the email address of the logged-in user, because that’s an essential part of the process of determining who this person is and what account on your web app to log this user into. Click the three dots in the upper right. Since Google doesn’t give you a screenshot showing where the Universal Actions go, I will: The three dots in the upper right are where the Universal Actions are hiding. You then go to run your Add-on, but it doesn’t show. Where in the world are your Universal Actions? I wanted to add a Help menu item to my cards, so since its context-independent, I figured I’d use a Universal Action. If you uncomment the “var” lines, and comment out the line at the top, it does work, without the runtime error. I don’t know why exactly this doesn’t work, but note the commented lines. You just didn’t build your card quite right. A confusing error message, because the updateCard method definitely exists. If you make a slight mistake in how you do this, you’ll be told that the updateCard method doesn’t exist. One of the things you’ll learn to do is to write navigation flows, so your user can navigate smoothly between cards. While debugging, the error messages are just plain wrong occasionally. If you notice that your Add-on appears a bit too fast, then it might be cached, in which case you should reload Gmail. Just open up another email, wait for your Add-on to present itself, and it will reflect your updated code. To save your changes, you just hit the SAVE button in the Google Script editor, and then in another window, where you have Gmail loaded with your Add-on running, you do NOT need to RELOAD. No need to reloadĪs you’re writing your Add-on and testing it, you’ll be making changes to the HEAD deployment of your Google Apps Script project. Gmail Add-ons are more controlled, limiting you to certain fonts, layouts, and user interface controls. Chrome extensions offer greater flexibility than Gmail Add-ons, in terms of look, feel, and the code that can be executed. ![]() Gmail Add-ons work on desktop and mobile. It is not possible to write a Gmail Add-on that does everything your Chrome extension does, unless what your Chrome extension does is limited to being present in the Gmail sidebar and only being active when an email is being read. Chrome extensions only work on the desktop. It is possible to write a Chrome extension that does the equivalent of what your Gmail Add-on does, except for working on mobile. The new Gmail “Add-on” is a Gmail specific piece of software that enhances Gmail, and it has the benefit of working on both desktop and mobile, via the native Gmail app on Android (iOS support supposedly coming soon). ![]() If you are a Firefox user, the equivalent of Chrome extensions are Firefox add-ons. Chrome extensions only work on desktop and not on mobile. Chrome extensions are pieces of software that are installed in Chrome and can enhance the functionality of any website, Gmail being one of them. Google choosing the term “add-on” probably wasn’t the best idea, but since they did, let’s clear up the confusion. Many people use the term “add-on” to describe what is otherwise just a Chrome extension that extends Gmail. The term “add-on” has been used in other contexts for far longer, like Firefox’s Add-ons, which are the Firefox equivalent of Chrome extensions. If you’re confused, thinking that Add-ons have been around forever and all this hoopla is nothing new, you are partially right. But if you’re like me, you’re going to run into some stumbling blocks while writing your Gmail Add-on, and you won’t have a place to turn, because this development platform is so new that these issues aren’t documented. You can read the Google documentation on how to write an add-on, which I’ve basically memorized at this point. I’m currently working on a Gmail Add-on for GMass that will let you see the campaign history for a contact when you’re viewing an email from that contact. ![]() In October 2017, Google released its Gmail “Add-on” platform, allowing developers to create add-ons for Gmail that work on both desktop and mobile (well Android right now, iOS coming later).
0 Comments
Leave a Reply. |