Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Wode archive me

Is messenger.notifications.getPermissionLevel() supported in Thunderbird 128esr?

Jim DeLaHunt

I am learning how to develop add-ons for Thunderbird. In working through the [**"Hello World" Extension Tutorial**](https://developer.thunderbird.net/add-ons/hello-world-add-on), I decided to try calling the function `messenger.notifications.getPermissionLevel()` function described in the [MailExtensions notifications API documentation](https://webextension-api.thunderbird.net/en/128-esr-mv2/notifications.html).

When I use code like: ``` let allowed = await messenger.notifications.getPermissionLevel(); ``` I see the following error message on the Developer Tools console: ``` Uncaught (in promise) TypeError: messenger.notifications.getPermissionLevel is not a function ```

Meanwhile, over at GitHub, I see [thunderbird/webext-schemas/schema-files/notifications.json#L228-L247](https://github.com/thunderbird/webext-schemas/blob/d0c42f0f1e82244095f002387a2a4d253ab679fb/schema-files/notifications.json#L228-L247), which includes the field, `"unsupported": true`. It also lacks a field `mdn_url`, and there is no entry for it in the [Mozilla browser extensions docs](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications).

So, is messenger.notifications.getPermissionLevel() supported in Thunderbird 128esr? And, where is that answer documented?

I am learning how to develop add-ons for Thunderbird. In working through the [**"Hello World" Extension Tutorial**](https://developer.thunderbird.net/add-ons/hello-world-add-on), I decided to try calling the function `messenger.notifications.getPermissionLevel()` function described in the [MailExtensions notifications API documentation](https://webextension-api.thunderbird.net/en/128-esr-mv2/notifications.html). When I use code like: ``` let allowed = await messenger.notifications.getPermissionLevel(); ``` I see the following error message on the Developer Tools console: ``` Uncaught (in promise) TypeError: messenger.notifications.getPermissionLevel is not a function ``` Meanwhile, over at GitHub, I see [thunderbird/webext-schemas/schema-files/notifications.json#L228-L247](https://github.com/thunderbird/webext-schemas/blob/d0c42f0f1e82244095f002387a2a4d253ab679fb/schema-files/notifications.json#L228-L247), which includes the field, `"unsupported": true`. It also lacks a field `mdn_url`, and there is no entry for it in the [Mozilla browser extensions docs](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/notifications). So, is messenger.notifications.getPermissionLevel() supported in Thunderbird 128esr? And, where is that answer documented?

All Replies (1)

Perhaps direct addon development questions to the appropriate list. https://thunderbird.topicbox.com/groups/addons