Browser SDK 3 Maximum number of installations reached

using “@xmtp/browser-sdk”: “^3.0.1”,

I get TP Error: :cross_mark: Maximum number of installations reached You’ve reached the maximum number of installations (5) for this XMTP inbox. Please follow these steps: 1. Go to https://community.xmtp.org to revoke an existing installation 2. After revoking an installation, refresh this page 3. Try connecting again Important: Messages will be lost if you switch environments or lose your database. If you need help, contact XMTP support at community.xmtp.org

Where do I revoke this? Help!!!

You need to use the static functions on the Client class to get the inbox state (by passing the problematic inbox Id) and and revoke installations:

const inboxState = await Client.inboxStateFromInboxIds([inboxId], env)

Note: env is the targer XMTP env. ie: dev or production

Then pass the installations in the returned inboxState to the next function

await Client.revokeInstallations(signer, inboxId, inboxState[0].installations.map((item) => item.bytes));

If you’re connected to a broswer wallet, this will ask you to sign a message to revoke the installations.

Once done, you should be able to register a new installation afterwards

Note: the signer here is the XMTP Signer and not your wallet signer

i have tried every which way

and did-health/src/lib/useXmtp.ts at develop · did-health/did-health · GitHub

we now have a tool built into xmtp.chat to help with this.

let me know if it’s working for you.

2 Likes