Skip to content
Last update: June 20, 2024

FcmSettings query

This query retrieves the Firebase Cloud Messaging (FCM) settings required for configuring and using FCM in the application.

Possible returns

Possible return Description
FcmSettingsType The structured data containing FCM settings.

Examples

query {
  fcmSettings {
    apiKey
    authDomain
    projectId
    storageBucket
    messagingSenderId
    appId
    vapidKey
  }
}
{
  "data": {
    "fcmSettings": {
      "apiKey": "your-api-key",
      "authDomain": "your-auth-domain",
      "projectId": "your-project-id",
      "storageBucket": "your-storage-bucket",
      "messagingSenderId": "your-messaging-sender-id",
      "appId": "your-app-id",
      "vapidKey": "your-vapid-key"
    }
  }
}