Socket
Socket
Sign inDemoInstall

@firebase/installations

Package Overview
Dependencies
6
Maintainers
4
Versions
2559
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @firebase/installations


Version published
Weekly downloads
1.4M
decreased by-15.53%
Maintainers
4
Install size
1.90 MB
Created
Weekly downloads
 

Package description

What is @firebase/installations?

The @firebase/installations npm package is part of the Firebase SDK and is responsible for managing unique identifiers for Firebase installations. It provides APIs to generate and manage these identifiers, which are crucial for the proper functioning of other Firebase services such as Firebase Cloud Messaging (FCM) and Firebase Remote Config.

What are @firebase/installations's main functionalities?

Generate a unique identifier for a Firebase installation

This feature allows the generation of a unique identifier for each Firebase installation. This ID is used internally by Firebase services to target specific installations.

import { getInstallations, getId } from '@firebase/installations';

const installations = getInstallations();
getId(installations).then(id => console.log('Firebase Installation ID:', id));

Delete an installation

This feature provides the functionality to delete a Firebase installation. This might be used when cleaning up data or when a user logs out and you want to ensure their installation data is reset.

import { getInstallations, deleteInstallation } from '@firebase/installations';

const installations = getInstallations();
deleteInstallation(installations).then(() => console.log('Installation deleted'));

Other packages similar to @firebase/installations

FAQs

Last updated on 28 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc