> For the complete documentation index, see [llms.txt](https://shelfy.gitbook.io/welcome-to-shelfy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shelfy.gitbook.io/welcome-to-shelfy/integrations/apple-ios-integrations/setup-firebase-push-notifications-for-apple-ios.md).

# Setup Firebase push notifications for Apple iOS

### <mark style="color:green;">Prerequisites</mark> <a href="#id-3t15l2hdqhc" id="id-3t15l2hdqhc"></a>

Before you can activate push notifications, set the [Firebase connection](https://console.firebase.google.com/) in the project level account.

### <mark style="color:green;">Integration flow</mark> <a href="#toje8jgl50p" id="toje8jgl50p"></a>

The integration flow to connect a Firebase project and a Google Cloud account involves the following:

* Create key in Firebase project
* Register the key from Firebase into the Google Cloud account
* Upload file to the shelfy.io back-office

### <mark style="color:green;">Procedure</mark> <a href="#uo1gx4oy02j6" id="uo1gx4oy02j6"></a>

1. Go to Firebase > Project Settings.
2. Click the Cloud Messaging tab.
3. Click Manage Service Accounts.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FOqSBwN4CK2ZQhRdK18hR%2F0?alt=media)
4. Go to [Google Cloud](https://console.cloud.google.com/) and copy the email address.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FPenwMUPJcf5xFGDEkzjp%2F1?alt=media)
5. In the side menu, click IAM.
6. Filter to the address and click the edit icon.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FORiAfBqSO4Tug8ZROGgm%2F2?alt=media)
7. Click add role, and in the Select a role drop down, choose Firebase Cloud messaging API Admin.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2F2AWk7OcwA9qB9r31lfSX%2F3?alt=media)
8. Click Save.
9. Go to the Service accounts tab, and click the email.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FVKMynKnCaEAQ0vTva3in%2F4?alt=media)
10. Go to the Keys tab.
11. In the Add key drop drown, select Create new key.\
    ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FvAT0dkpEB848Yi9ouS0X%2F5?alt=media)
12. Create a private key using a JSON file type. The file is automatically downloaded to your computer.\
    ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2F8COa50JZg7yWJiC7GxL9%2F6?alt=media)
13. Login to [shelfy.io console](https://dev.shelfyconsole.io/), and go to the Integrations Panel.\
    (Integration Panel/Push Notifications/Firebase)
14. Upload the JSON file.\
    ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2Fd8zbfsb6lZ0plbpWIGAe%2F7?alt=media)

### <mark style="color:green;">Add The Push Notification Key From Apple Developers To The Firebase</mark> <a href="#y4e97mhcqwja" id="y4e97mhcqwja"></a>

Shelfy flow - we provide you with the key from our Apple Developer register to push notification. (The Key should be on the same account the App stored).

![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FOsGzSUbuD90sAJ5KdMJZ%2Fimage.png?alt=media\&token=0a2ab349-3239-40fd-b3c1-9eb1dd1ac6b3)

this Key should be added to the firebase in Cloud Messeging Tab.

![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FmAwwwMgqzhE19tAeIXvS%2Fimage.png?alt=media\&token=f79a4e7d-2270-4d5c-bee9-b54933d38bff)

### <mark style="color:green;">Activate Apple iOS push notifications</mark> <a href="#h4l3zbw3ou9t" id="h4l3zbw3ou9t"></a>

1. In Firebase, go to Project Settings > General.
2. Download the GoggleService.info.plist file.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FLtutw274PPZaJ3nIo4aQ%2F8?alt=media)
3. Copy the Apple bundle ID value to your Firebase project.
4. Upload the GoggleService.info.plist. File.\
   ![](https://2992732956-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuodSDNXHYMkfwgZ6AayC%2Fuploads%2FlZy3Q11BOHahsFkSSMfQ%2F9?alt=media)
5. Click Save To Version. Release the version with iOS push notifications activated.
