I'm writing an application that adds email messages to a Gmail inbox using the "insert" API call. I need the added messages to trigger a "new email" notification in the email clients connected to this inbox. This works with all the email clients I've tried, except with the Gmail Web UI. Not only Gmail doesn't trigger a desktop notification, but the new emails take up to 2 minutes to appear in the inbox.
I've tried using "import" instead of "insert" to add new emails, and that seems to get Gmail to trigger desktop notifications, unfortunately I can't really use "import" because I need to skip filters, among other reasons.
Is this a known issue of the Gmail Web UI? Does anyone know of a workaround to force Gmail to trigger a desktop notification?