Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@firebase/installations-compat

Package Overview
Dependencies
Maintainers
4
Versions
1103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firebase/installations-compat

This is a compatability layer for the Firebase Installations SDK

  • 0.2.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created

What is @firebase/installations-compat?

@firebase/installations-compat is a Firebase package that provides compatibility for Firebase installations. It allows you to manage and retrieve Firebase installation IDs, which are unique identifiers for app instances. This package is particularly useful for managing app instance identifiers and tokens, which can be used for various purposes such as analytics, notifications, and more.

What are @firebase/installations-compat's main functionalities?

Get Installation ID

This feature allows you to retrieve the unique installation ID for the current app instance. The installation ID can be used for identifying the app instance in various Firebase services.

const { getInstallations } = require('@firebase/installations-compat');
const installations = getInstallations();
installations.getId().then(id => {
  console.log('Installation ID:', id);
});

Get Installation Token

This feature allows you to retrieve a token for the current app instance. The token can be used for authenticating requests to Firebase services.

const { getInstallations } = require('@firebase/installations-compat');
const installations = getInstallations();
installations.getToken().then(token => {
  console.log('Installation Token:', token);
});

Delete Installation

This feature allows you to delete the current app instance's installation ID and associated data. This can be useful for resetting the app instance or managing user privacy.

const { getInstallations } = require('@firebase/installations-compat');
const installations = getInstallations();
installations.delete().then(() => {
  console.log('Installation deleted');
});

Other packages similar to @firebase/installations-compat

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc