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

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

  • No replies
  • 0 have this problem
  • 1 view
more options

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?

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.