# Your own push notifications (not using the default gateway)

**URL:** <https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063>\
**Category:** Community Support\
**Created:** [May 23, 2020, 5:24pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063 "2020-05-23T17:24:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim.J](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kim.J](https://forums.rocket.chat/u/Kim.J)\
**Post date:** [May 23, 2020, 5:24pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/1 "2020-05-23T17:24:54Z")

</div>

Are you able to use your own GCM API/Server ID if you’re **using the “Native RC App”** from the Google Play Store? Or are you **required to compile your own app** to make it work? The settings in the admin panel and RC documentation don’t make it super clear, from what I’ve read how firebase push works it seems like you would absolutely need to compile your own app with its own unique app name to get push notification to work by setting the GCM settings in the admin panel. So am I correct to assume then that using the native RC app form the G play store would result in notifications not being delivered even if correct GCM Api and Server ID are set?

Or **am I completely wrong here** and the native RC app from G Play store should absolutely work to have push notifications if you set your own GCM settings in the Push section of the admin panel?

Thanks for the help pals.

---

<div class="post-metadata">

**Author:** ![gungott](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gungott](https://forums.rocket.chat/u/gungott)\
**Post date:** [May 24, 2020, 10:20am UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/2 "2020-05-24T10:20:20Z")

</div>

Do you mean you want your own notification icon ? Yes so you have to compile your own app.  
Otherwise it works fine … i have just the prob that if the app is conpletly closed i didnt get notis., so i have to activate enail notis wich i dont like very much.

For what exactly you want to set your own fcm id ? Usually it didnt make sense to me.

---

<div class="post-metadata">

**Author:** ![Kim.J](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kim.J](https://forums.rocket.chat/u/Kim.J)\
**Post date:** [May 24, 2020, 4:17pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/3 "2020-05-24T16:17:04Z")

</div>

No, I meant push notifications reaching user’s devices. If I use Rocketchat’s default gateway server then it works fine as intended, but if I turn off their gateway and enter my own GCM API/Server ID nothing gets delivered to my android device (Yes I restart both the server and the client after changing the settings). I assume it’s because GCM won’t deliver to rocketchat’s native APP but that’s what I’m trying to confirm. Do I need to re-build rocketchat’s native react app with my own google server json file to get it to work or can I use the rocketchat app from google play store whiel still using my own GCM API for push notifications?

---

<div class="post-metadata">

**Author:** ![gungott](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gungott](https://forums.rocket.chat/u/gungott)\
**Post date:** [May 24, 2020, 4:39pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/4 "2020-05-24T16:39:52Z")

</div>

You know that GCM is no longer supported ??? Its longtime deprecated ,you have to migrate to fcm and have to generate a fcm key there ,when i remember right, but you probably know that.

---

<div class="post-metadata">

**Author:** ![Kim.J](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@Kim.J](https://forums.rocket.chat/u/Kim.J)\
**Post date:** [May 24, 2020, 5:53pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/5 "2020-05-24T17:53:55Z")

</div>

Yes, I’m aware, I simply referred to it as GCM since that’s what it’s called in the settings still.

Still trying to get a clear answer, will my own push notifications work with my own FCM (GCM) API credentials with the Official RocketChat App from the Google Play Store, or do I need to compile my own apk and use that to get push notifications via my own FCM (GCM) API?

---

<div class="post-metadata">

**Author:** ![vocalviews](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@vocalviews](https://forums.rocket.chat/u/vocalviews)\
**Post date:** [October 21, 2020, 9:59am UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/6 "2020-10-21T09:59:05Z")

</div>

I would like to know the answer to this too, did you ever find out? I am pretty sure you will need to compile your own APK

---

<div class="post-metadata">

**Author:** ![marcan](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/marcan/32/2315_2.png) [@marcan](https://forums.rocket.chat/u/marcan)\
**Post date:** [November 6, 2020, 7:04am UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/7 "2020-11-06T07:04:46Z")

</div>

You can’t use your own push gateway with the official app. This is due to Apple and Google’s push notification policies, which are anti-open source projects. You need to build your own app to be able to use your own FCM credentials and your own gateway.

---

<div class="post-metadata">

**Author:** ![fabriziorocha](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/fabriziorocha/32/4321_2.png) [@fabriziorocha](https://forums.rocket.chat/u/fabriziorocha)\
**Post date:** [December 13, 2022, 10:24pm UTC](https://forums.rocket.chat/t/your-own-push-notifications-not-using-the-default-gateway/7063/8 "2022-12-13T22:24:34Z")

</div>

Hello !  
I’m facing some difficulties configuring my RC server, more specifically what I’m supposed to provide as “GCMAPI Key” and “GCM Project Number” (at RC Push settings) and how/where to get it.

I have created a FCM project and have “Web push certificates” generated. Also, I have already compiled RC app (downloaded from git), set required parameters and publish to a phone for testing.

At Firebase Web Console I have created a campaing just for testing and I got the notification at my phone.

So I’m thinking I’m missing something at server side.

Please help!
