Centre d'aide Unregister an installation

Unregister an installation

Call this on logout, so the device stops receiving notifications intended for the signed-out user.

POST /api/push/unregisterInstallation
X-Push-App-Key: <application key>
Content-Type: application/json
{ "firebaseInstallationId": "fA9kQ2xRTb2mLp0WYs4nEv" }

Fields

FieldRequiredNotes
firebaseInstallationIdyesThe id that was actually registered.

Use the id you registered, not a fresh one

Persist the installation id locally rather than re-deriving it at logout. A reinstall between registration and logout yields a different id, and the old installation is then orphaned — it stays subscribed and keeps receiving messages.

Logout and login on the same device

If the next user signs in on the same device, you do not need to unregister first: re-registering the same installation id under a different externalUserId rebinds it. See Register an installation.