# Push Notification Via FCM to Apple Devices

**URL:** <https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531>\
**Category:** Community Support\
**Created:** [January 14, 2020, 8:08pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531 "2020-01-14T20:08:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlegK](https://avatars.discourse-cdn.com/v4/letter/o/848f3c/32.png) [@OlegK](https://forums.rocket.chat/u/OlegK)\
**Post date:** [January 14, 2020, 8:08pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/1 "2020-01-14T20:08:56Z")

</div>

Push notifications are not sent to ios, but on android everything works without problems on the React Native Client (changed bundle id and plist\google services).  
Self hosted server, we use FCM . where the key for APN is registered.

The Rocket Chat server push notification configuration includes the GCM API Token and the GCM Project Number.  
According to the logs it is clear that the pushies should go, but they do not come.  
What could be the reason?  
Perhaps we need to use APN certificates separately from FCM?

### Server Setup Information

- Version of Rocket.Chat Server: 2.3.0
- Operating System: Linux
- Deployment Method: snap
- Number of Running Instances: 3
- DB Replicaset Oplog: 168
- NodeJS Version: v8.11.4
- MongoDB Version: 4.0.13
- Proxy: nginx
- Firewalls involved: -

### Any additional Information

I20200114-02:19:40.862(3) Create GCM Sender using “\<–hidden–\>”  
I20200114-02:19:40.862(3) A:Send message to: “\<–hidden–\>”  
I20200114-02:19:40.864(3) send to token { apn: '"\<–hidden–\>" ’ }  
I20200114-02:19:40.864(3) Push: Sent message “olegtest” to 3 ios apps 1 android apps  
I20200114-02:19:41.259(3) ANDROID: Result of sender: {“multicast\_id”:8143479216614887000,“success”:1,“failure”:0,“canonical\_ids”:0,“results”:[{“message\_id”:“0:1578957581232019%9b5a33060034af1a”}]}  
I20200114-02:19:50.696(3) Push: Send message “olegtest” via query { userId: ‘kev9Jy4cWKmy8RSTP’ }  
I20200114-02:19:50.698(3) send to token { apn: '"\<–hidden–\>" ’ }  
I20200114-02:19:50.698(3) send to token { apn: '"\<–hidden–\>" ’ }  
I20200114-02:19:50.698(3) send to token { gcm: '"\<–hidden–\>" ’ }

I20200114-02:19:50.699(3) sendGCM ['"\<–hidden–\>" ’] { \_id: ‘vBWoTJJL4YwjHPDoc’, createdAt: 2020-01-13T23:19:50.015Z, createdBy: ‘’, from: ‘push’, title: ‘olegtest’, text: ‘ss’, payload: { host: '"\<–hidden–\>" ', rid: ‘2zmh7yDSKjWonBXLwkev9Jy4cWKmy8RSTP’, sender: { \_id: ‘2zmh7yDSKjWonBXLw’, username: ‘olegtest’ }, type: ‘d’, messageId: ‘RWXxwqP6wf3PYCJA6’ }, badge: 1, sound: ‘default’, notId: -25253760, apn: { category: ‘MESSAGE’ }, gcm: { image: '"\<–hidden–\>" ', style: ‘inbox’, summaryText: ‘%n% new messages’ }, query: { userId: ‘kev9Jy4cWKmy8RSTP’ }, sent: false, sending: 0, image: '"\<–hidden–\>" ', style: ‘inbox’, summaryText: ‘%n% new messages’ }  
I20200114-02:19:50.702(3) Create GCM Sender using “”\<–hidden–\>" "  
I20200114-02:19:50.703(3) A:Send message to: eqpo9ZVam4k:"\<–hidden–\>"  
I20200114-02:19:50.703(3) send to token { apn: ‘ce997e61b7f4de408297ea7ffcd5a84ad33bc9d3646b461250427daf6ea4c1e7’ }  
I20200114-02:19:50.703(3) Push: Sent message “olegtest” to 3 ios apps 1 android apps  
I20200114-02:19:50.755(3) ANDROID: Result of sender: {“multicast\_id”:8042224112361969000,“success”:1,“failure”:0,“canonical\_ids”:0,“results”:[{“message\_id”:“0:1578957590725724%9b5a33060034af1a”}]}

---

<div class="post-metadata">

**Author:** ![OlegK](https://avatars.discourse-cdn.com/v4/letter/o/848f3c/32.png) [@OlegK](https://forums.rocket.chat/u/OlegK)\
**Post date:** [January 14, 2020, 10:12pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/2 "2020-01-14T22:12:05Z")

</div>

I solved the problem myself - indeed, to work with apple, you need to download APN certificates

---

<div class="post-metadata">

**Author:** ![ari9](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ari9](https://forums.rocket.chat/u/ari9)\
**Post date:** [April 23, 2020, 10:04am UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/3 "2020-04-23T10:04:52Z")

</div>

Hi, can you help me out in setting up push notifications?

---

<div class="post-metadata">

**Author:** ![roaring-bee](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@roaring-bee](https://forums.rocket.chat/u/roaring-bee)\
**Post date:** [June 15, 2021, 1:44am UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/4 "2021-06-15T01:44:43Z")

</div>

Yes, please. I’m hosting my own rocket chat server without push notifications enabled! I’ve been unable to find documentation for how to enable push notifications for the standard Rocket.Chat app for iOS when self-hosting rocket chat server.

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 15, 2021, 8:06am UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/5 "2021-06-15T08:06:05Z")

</div>

Answered here:

> [@Push Notification Gateway Pricing](https://forums.rocket.chat/t/push-notification-gateway-pricing/3044/54):
>
> You will need to register a workspace to enable push notifications through the Rocket.Chat gateway. As above you get 10k for free, then a couple of increases in notification quantities for small levels of sponsorship through github. Beyond that you can either use a subscription, or use your own notification gateway. But to do that you will need to build and run your own apps.

---

<div class="post-metadata">

**Author:** ![roaring-bee](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@roaring-bee](https://forums.rocket.chat/u/roaring-bee)\
**Post date:** [June 15, 2021, 10:11pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/6 "2021-06-15T22:11:42Z")

</div>

Thanks for the quick response! That makes sense.

I started down the path of building our own iOS app but unfortunately ran into Podfile/React issues trying to build it. I’ll have to try again when I have more time.

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 15, 2021, 11:07pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/7 "2021-06-15T23:07:13Z")

</div>

NP.

Notification Gateways aren’t free ☹ We wish!!

They appear so for many services as they are effectively a loss leader.

Rocket has tried to take a pragmatic view on this. We help as much as we can, but we are not a bottomless pit!

You always have the option of taking the code and building with your own notification gateway. No, that isn’t either easy, or cheap. But it is possible if you really object.

If you want to do this then let us know if you get stuck and we will try to assist you.

---

<div class="post-metadata">

**Author:** ![hulkfork](https://avatars.discourse-cdn.com/v4/letter/h/85e7bf/32.png) [@hulkfork](https://forums.rocket.chat/u/hulkfork)\
**Post date:** [June 27, 2021, 7:13pm UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/9 "2021-06-27T19:13:10Z")

</div>

Please can you help me out in setting up push notifications?

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 28, 2021, 9:16am UTC](https://forums.rocket.chat/t/push-notification-via-fcm-to-apple-devices/5531/10 "2021-06-28T09:16:12Z")

</div>

It depends what your problem is.

Please read the documentation.
