# Always getting Error: The storage API will not work with a temporary addon ID

**URL:** <https://discourse.mozilla.org/t/always-getting-error-the-storage-api-will-not-work-with-a-temporary-addon-id/96986>\
**Category:** Development\
**Created:** [May 7, 2022, 9:47pm UTC](https://discourse.mozilla.org/t/always-getting-error-the-storage-api-will-not-work-with-a-temporary-addon-id/96986 "2022-05-07T21:47:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iKingNinja](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ikingninja/32/56766_2.png) [@iKingNinja](https://discourse.mozilla.org/u/iKingNinja)\
**Post date:** [May 7, 2022, 9:47pm UTC](https://discourse.mozilla.org/t/always-getting-error-the-storage-api-will-not-work-with-a-temporary-addon-id/96986/1 "2022-05-07T21:47:08Z")

</div>

Hello! I developed an extension but i noticed that Firefox doesn’t support manifest v3 yet so i need to convert my extension to v2. I am having troubles with the storage API which is throwing this error: `Uncaught (in promise) Error: The storage API will not work with a temporary addon ID. Please add an explicit addon ID to your manifest. For more information see https://mzl.la/3lPk1aE.`

Reading the documentation i found out that there needs to be a key in manifest called “specific\_browser\_settings” and i have added it, the problem is the id because none that i have tried has worked. I haven’t published this extension to the add-ons store because i first need to test it but how am i supposed to do so if temporary ids are not accepted?

browser\_specific\_settings:

```json
"browser_specific_settings": {
    "gecko": {
        "id": "id@temporary-addon",
        "strict_min_version": "88.0"
    }
},

```

I got that id from this field ![image](https://us1.discourse-cdn.com/flex001/uploads/mozilla/original/3X/7/2/72d9b67cc6f02579376cd24741f6fc56e3678292.png)

and if needed this the code invoking the API:

```js
const data = await browser.storage.sync.get('amAccounts').then((data) => {return data.amAccounts});

```

I would like to understand what i need to do in order to solve the id problem

---

<div class="post-metadata">

**Author:** ![hans\_squared](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/hans_squared/32/67424_2.png) [@hans\_squared](https://discourse.mozilla.org/u/hans_squared)\
**Post date:** [May 7, 2022, 11:04pm UTC](https://discourse.mozilla.org/t/always-getting-error-the-storage-api-will-not-work-with-a-temporary-addon-id/96986/2 "2022-05-07T23:04:16Z")

</div>

> [@iKingNinja](#):
>
> the problem is the id because none that i have tried has worked

Which IDs have you tried?  
Did they produce the same error?

> **[browser\_specific\_settings - Mozilla | MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings#extension_id_format)**
>
> The browser\_specific\_settings key contains keys that are specific to a particular host application.

A string formatted like an email address: `extensionname@example.org`

---

<div class="post-metadata">

**Author:** ![iKingNinja](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/ikingninja/32/56766_2.png) [@iKingNinja](https://discourse.mozilla.org/u/iKingNinja)\
**Post date:** [May 8, 2022, 9:18am UTC](https://discourse.mozilla.org/t/always-getting-error-the-storage-api-will-not-work-with-a-temporary-addon-id/96986/3 "2022-05-08T09:18:13Z")

</div>

> [@hans\_squared](#):
>
> Which IDs have you tried?

I tried the one displayed in “Extension ID” and also strings formatted like email addresses, now it is working with the format [extensionname@example.org](mailto:extensionname@example.org). Anyways thanks!
