# Notifications

CustomerGlu supports *Firebase Messaging* and *Apple Push Notification service* (*APNs*) to send in-app/push notifications to the users. Following requirements have to be met for enabling notifications from CustomerGlu:

* Your FCM Server key/Apple Push Notification Authentication Key has to be shared with CustomerGlu
* firebaseToken/apnsDeviceToken, deviceType, deviceId has to be provided during device/user registration
* The tokens must be updated on refresh from device

## Firebase Cloud Messaging (FCM)

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2FmRYae70EeaoQ6nrxjjgH%2Fimage.png?alt=media\&token=585bc867-c207-477b-8b33-1dfa944978a6)

#### Creating Private Key for Firebase Account

Go to Project Settings > service accounts > Generate new private key for Node.js

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2FAp1UyfG9SfV65PDHo6lp%2Fimage.png?alt=media\&token=54b8afa5-b75e-45d5-89d6-9e990bbf644d)

## Apple Push Notification service (APNs)

#### Creating Authentication Key for APNS

When sending push notifications using an APNs Auth Key, we require the following information about your app:

* Auth Key file (.p8 format)
* Key ID
* Team ID
* Your app’s bundle ID

1. Visit the Apple [Developer Member Center](https://developer.apple.com/account/).
2. Click on “Certificates, Identifiers & Profiles”.
3. Go to Keys from the Left Menu.
4. Create a new Auth Key by clicking on the “+” button in the top right corner.

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2FbDyQZWVnWKT8VLG6JphD%2Fimage.png?alt=media\&token=4067ee12-4439-46c6-9622-7e092a22b1aa)

5\. On the following page, add a Key Name, and select APNs

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2FCOPCFWbzsIVMgBBmv5ik%2Fimage.png?alt=media\&token=cb4ecad5-b2ee-4c29-a0b5-3775831bb821)

6\. On this page, you will be able to download your auth key file.

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2FKFtwGXx8tekAf2boq0yV%2Fimage.png?alt=media\&token=dfe76090-fdeb-4d1b-aa85-3faf719db698)

7\. TeamID can be found in the "View Account" menu

![](https://1004846827-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0ahLW2WavtwcwNbSR9%2Fuploads%2Fe0aSNcHT7n1p2cAf37YY%2Fimage.png?alt=media\&token=942d4947-fce0-4f85-a60f-6badee009a2a)

8\. Your app’s bundle ID can be found in Xcode.
