# \[SOLVED\] Self hosted push notifications

**URL:** https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190
**Category:** Troubleshooting
**Created:** [December 1, 2017, 2:21pm UTC](https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190 "2017-12-01T14:21:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dh.harald](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/dh.harald/32/1723_2.png) [@dh.harald](https://forum.mattermost.com/u/dh.harald)
#### Post date: [December 1, 2017, 2:21pm UTC](https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190/1 "2017-12-01T14:21:08Z")

</div>

Hi,

I can’t get working self hosted push notification for my android phones…  
Could you give me directions, what’s missing?

What I did:

- Mattermost: 4.3.0 (self hosted - container)
- Mattermost push-proxy: (self hosted, container) communicates via docker0 interface
- mattermost-mobile:
  - replaced android/app/google-services.json (downloaded from firebase console)
  - modified: \<meta-data android:name=“com.wix.reactnativenotifications.gcmSenderId” android:value= ← my gcmSenderID

my push proxy config contains only android specific parts:

> {  
> “ListenAddress”:“:8066”,  
> “ThrottlePerSec”:300,  
> “ThrottleMemoryStoreSize”:50000,  
> “ThrottleVaryByHeader”:“X-Forwarded-For”,  
> “EnableMetrics”: false,  
> “AndroidPushSettings”:[  
> {  
> “Type”:“android”,  
> “AndroidApiKey”:“xxx”  
> },  
> {  
> “Type”:“android\_rn”,  
> “AndroidApiKey”:“xxx”  
> }  
> ]  
> }

AndroidApyKey from Firebase Settings/General/Web Api Key.

In short, I don’t get notifications:  
I’ve tested the following ones:  
sending notification from firebase console to deviceid/app:  
completed, but I didn’t get any notification in application  
using mattermost-push-proxy:  
error: 401 Unauthorized type=android\_rn

Any idea, what’s missing?

Kind regards,  
Harald

---

<div class="post-metadata">

### Author: ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)
#### Post date: [December 4, 2017, 7:39am UTC](https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190/2 "2017-12-04T07:39:13Z")

</div>

Hi @dh.harald,

Thanks for your feedback,

You don’t say whether you’ve configured your system using guides from our documentation so I’m listing a couple of help docs here. If these don’t help, please come back and we’ll try to troubleshoot further?

- [https://docs.mattermost.com/mobile/mobile-troubleshoot.html#im-not-receiving-push-notifications-on-my-device](https://docs.mattermost.com/mobile/mobile-troubleshoot.html#im-not-receiving-push-notifications-on-my-device)
- [https://docs.mattermost.com/mobile/mobile-troubleshoot-notifications.html#troubleshooting-push-notifications](https://docs.mattermost.com/mobile/mobile-troubleshoot-notifications.html#troubleshooting-push-notifications)
- [https://docs.mattermost.com/mobile/mobile-faq.html#do-i-need-to-compile-the-mobile-apps-to-host-my-own-push-notification-server](https://docs.mattermost.com/mobile/mobile-faq.html#do-i-need-to-compile-the-mobile-apps-to-host-my-own-push-notification-server)
- [https://docs.mattermost.com/overview/faq.html#mobile-applications](https://docs.mattermost.com/overview/faq.html#mobile-applications)
- [https://docs.mattermost.com/administration/config-settings.html#mobile-push](https://docs.mattermost.com/administration/config-settings.html#mobile-push)
- [https://docs.mattermost.com/deployment/deployment.html#mobile-app-experience](https://docs.mattermost.com/deployment/deployment.html#mobile-app-experience)

You might also like to upgrade to the [latest version](https://about.mattermost.com/download/) of Mattermost as there have been quite a few updates since 4.3

---

<div class="post-metadata">

### Author: ![dh.harald](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/dh.harald/32/1723_2.png) [@dh.harald](https://forum.mattermost.com/u/dh.harald)
#### Post date: [December 4, 2017, 11:53am UTC](https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190/3 "2017-12-04T11:53:15Z")

</div>

I’ve solved this issue, but I don’t know, what was the real solution…  
I started everything from scratch:

- upgraded Mattermost to 4.4.0
- created a new android application  
IMPORTANT: I didn’t do with firebase console, I did it based on this guide: [https://code.tutsplus.com/tutorials/how-to-get-started-with-push-notifications-on-android--cms-25870](https://code.tutsplus.com/tutorials/how-to-get-started-with-push-notifications-on-android--cms-25870) (tru developer console) (I’ve used application id: com.mattermost.rn)  
I still don’t have firebase application.  
I’ve copied the google-services.json and modified gcmSenderId as mentioned before.

Kind regards,  
Harald

---

<div class="post-metadata">

### Author: ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)
#### Post date: [December 5, 2017, 10:55am UTC](https://forum.mattermost.com/t/solved-self-hosted-push-notifications/4190/4 "2017-12-05T10:55:49Z")

</div>

Pleased you have resolved the issue @dh.harald 🙂 Thanks for posting back your steps to your success…
