Can't get Google Now card to trigger from email - html

I've followed the tutorial here: https://developers.google.com/schemas/tutorials/google-now-cards
and I cannot get an event card to show up in my google now. I have noticed that some of the test emails I sent yesterday using this link http://gmail-actions.appspot.com/ (as suggested by the tutorial) have correctly showed the "Modify Reservation" button in Gmail but it seems like this doesn't show up immediately. I'm wondering if Google is doing some processing on the backend that takes some time to propagate into my inbox. I'm also wondering if Google Now Cards will only work if you schedule something at least one day in the future.
Has anyone gotten this to work? If so, was there any "gotchas" that aren't obvious from the Google Tutorial? Any help would be appreciated.

I've finally got this to work. For some reason the starter tutorial they provide doesn't give you adequate markup to generate a google now card. Instead, you should use the event without reservation markup here.

Related

Using DOMFormHasPassword and DOMInputPasswordAdded events in chrome extensions

tl;dr:
I'm trying to figure out how to use the DOMFormHasPassword and DOMInputPasswordAdded events in chrome extensions.
I'm trying to develop a password manager extension in chrome for my
school project. To make it, I would need a way to identify a login form and fill it automatically. So far I had relative success, but I encountered a problem: I would scan the page for a login form on page load, so if any form were to be added through javascript my extension would miss it.
I have googled the matter and found the terms DOMFormHasPassword and DOMInputPasswordAdded in some locations online, such as this one that states that the DOMFormHasPassword event was added to chrome, and some sort of an example of its use that I couldn't understand.
I've tried adding the events with document.addEventListener, without any success.
I also encountered the term SpecialPowers that I don't understand, and I think understanding it might solve my problem.
I Would be very grateful if you could even direct me to a documentation of those events, because I can't seem to to find it. Thank you for your time!

Facebook Instant "PLAY" button not present

My Facebook Instant app does not have a play button, so it's not possible to launch the app via sharing.
Could someone outline what I need to do to get this button to appear please?
I've set up everything (including an app page) in the dashboard. I'm assuming it has something to do with the "fbapp-config.json" file, but sample app doesn't seem to have the most common use case.
I assume don't need a self-hosted bot just to launch my app?
As discussed elsewhere (as I am unable to comment on Stack Overflow) I clarified that this is the Messenger share from the app details page. This looks like a bug on the Facebook side, as this reproduces for me.
For context, I am an engineer working on the Facebook Instant Games team. We will look into fixing this and update here when it is fixed.

Refreshing or closing the message currently open in the UI

I just finished writing my second gmail addon :) which was quite more simple than my first one, a couple of hours to do it only, but there's a simple thing missing that I spent another couple of hours trying to solve with no success.
Basically this script makes some changes to the currently open message in the UI but that do not appear in the UI when the script ends. So the question is, is there any way of refreshing or closing the message currently open in the UI?
I understand the scripts run in the server, but there are some "refresh" methods that I hoped it worked, but it seems they don't.
I tried both GmailApp and the Gmail API but no success.
Any ideia?
Cheers.
Did you try the 'refresh()' method of GmailMessage class? https://developers.google.com/apps-script/reference/gmail/gmail-message#refresh

Google Chrome extension - integrate with Google Calendar

How can a Chrome extension alter the Google Calendar event editing UI?
I see that, for example, the Moxtra extension has managed to inject UI including a button just below the location. According to their YouTube video they added a button to fill out the event description although when I installed Moxtra this no longer seems to work.
Stepping back from this a bit, it occurs to me that editing the Google Calendar page seems like something that could easily get messed up by future changes to Google Calendar. Perhaps it is better to edit the event description from the extension's own UI? If so, how can that be done?
Thanks.
It can be done with content scripts and modification of the DOM.
They probably check Event edit page for specific selectors and try to insert their own elements in the page, if they found it.
So, if UI of Google Calendar will change, extensions like Moxtra will be probably also broken.
You are right about the edit of the description - it's safer. But you still need to get a description field and change a content of it. There is no 100% safe way to do it and don't break on the change of UI.

how do i see code behind the Google sheet add on?

I created couple of google sheets add on, but then later my associated google account was disabled and can't access/edit those add ons.
Instead of starting from scratch I thought to ask here if there is a way to see the code behind the Google sheet add on?
thank you
No such API to view source code for Add-ons, nothing mentioned in the docs atleast.