adding a button to Gmail contact hover widget in the website - google-apps-script

I don't know if this possible,
I wanted to add a button with custom action using email address to the hover widget that comes up.
I'm assuming google app script should be the right way to go. But don't know what to search in the reference guide.

Gmail add-ons can't modify the Gmail UI, they only could create Cards which are shown on side panel.
Reference
https://developers.google.com/gsuite/add-ons/gmail/

Related

Google Workspace Add-On Hide or Edit App Bar Card

I developed an add-on for google workspace.
I followed the official guide for sidebar development.
Searching in the developers.google.com portal and in the Google Figma UI StyleGuide provided for the documentation of the add-on, I can't find how to change or hide the Add on top bar (not Header Card).
As you can see from the first photo attached (my add-on) I have defined the "Card Header", but it still remains the "add-on" Header Bar"(ref) that I would like to change or remove, like those of Google (attached photo) or other add-ons on the store.
Someone knows to modify it or has a reference where he explains how to do it?
Thank you so much!
Currently, the only customization that is available for the add-on header are the displayed name and the background color (fields name and layoutProperties in Common field, in your manifest).
Feature request:
If you'd like this functionality to be implemented, I'd suggest you to file a feature request on Issue Tracker, using this template.

Highlighting / Emphasizing Gmail-Addon

I am building a Gmail Add-On via Google App Scripts that will display provide helpful actions for emails with certain content.
Is there a way for me to highlight / emphasize / flash the icon for my Add-On (on the right hand sidebar)? This would let me notify the user that the Add-On can provide some functionality for the email they're reading.
As of now, there is no such functionality provided by Google team. The only way an add-on is activated by only user action(user has to click on the add ons icon from right side bar).

Adding Button in Gmail for web users

I am trying to figure out how can I add a button to the Gmail compose window.
Please see the image below for better idea..
Using Google App Script I have achieved some functionality where we can create almost anything, but How can We create a button in Gmail?
Even if not compose window as shown in image above, I will like to learn how to add button at any place in Gmail.com's window using gadget or any other way.
Note: I have tried many things and ended up nowhere, The Sidebar is deprecated by google so please don't highlight that..
I will be glad if any working code to add button in Gmail available,
Thanks in advance

Is there any way to get alert and prompt buttons to follow the UI Style guide for add-ons

I really don't want to create a full html dialogue box for a simple yes no question, when it is built into getUI() api. My problem is that prompt and alert function don't seem to conform to the UI Style guide for add-ons. This is causing an issue when trying to get it published, because I can't make them blue, or work when enter is clicked on the keyboard.
So is there any way to properly style alert and prompt boxes, or does anyone have any tricks that they are using.
The one thing I did was change my non-button alerts from alert to using toast instead.
The UI style guide specifically says 'And don't use UI service to create a public add-on', so no. You must use the HTML service.

How to acomplish the Google Phone stay on top effect html?

Google phone opens up a small widget on the right of Gmail and stays there. Even when navigating to other emails or composing at email (similar effect is achieved I believe by Facebook chat).
Are they using frames? I hope not.
I need to keep some images open while the user navigates other parts of the application so using the approach of google to place my image holders would be ideal.
I'm not familiar with google phone, but maybe an iframe is what you are after:
http://www.w3schools.com/tags/tag_iframe.asp
It's an inline reference to another document.