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

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

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

  • 1 svar
  • 0 har detta problem
  • 36 visningar
  • Senaste svar av Matt
  • Arkiverad

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?

Alla svar (1)

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