Skip to content

new_email observer seems not working #809

Open
@mmikhan

Description

@mmikhan

Hi there,

Not sure if it's a bug in gmail.js or something wrong on my end but new_email observe action isn't working for me. I tried the following:

gmail.observe.on("load", () => {
  gmail.observe.on("new_email", (id, url, body, xhr) => {
    console.log("id:", id, "url:", url, "body", body, "xhr", xhr);
  });
});

I also tried the following way but still no luck:

gmail.observe.on("load", () => {
  gmail.observe.after("new_email", (url, body, data, response, xhr) => {
    console.log(response.response);
  });
});

When a new email arrives in the inbox, I expect to see the console log but nothing happens really. Would appreciate a hint on this 🙏

Note

Not only the 'load' observer but other requests based observer aren't working either. For example, I have tested the 'refresh' observer in the boilerplate but that's not working as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions