# Custom Push Notifications: allowed user api push urls

**URL:** <https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644>\
**Category:** Development\
**Created:** [22 Dicembre 2016, 11:13am UTC](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644 "2016-12-22T11:13:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![skoota](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/skoota/32/65472_2.png) [@skoota](https://meta.discourse.org/u/skoota)\
**Post date:** [22 Dicembre 2016, 11:13am UTC](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644/1 "2016-12-22T11:13:10Z")

</div>

I am keen to do some modifications to the Discourse Mobile app to get push notifications working for our self-hosted installation of Discourse, particularly on iOS. From reading the [What if I want to white-label the Discourse Mobile apps?](https://meta.discourse.org/t/what-if-i-want-to-white-label-the-discourse-mobile-apps/53063) thread, it seems that I would need to configure the `allowed user api push urls` setting to a URL which can receive the notifications, and then re-publish the notification, for example, to the Apple Push Notification Service.

I had a few questions about the notifications:

1. Is there any information about the format of the request which would be sent to the URL defined in the `allowed user api push urls` setting, and capabilities required on that server to receive the request?

2. Does each user need to opt-in for push notifications, for the notifications to be sent to the on-forwarding server (defined in the URL above)? The only setting I could find was **Enable Push Notifications** in the user profile, but below the button it talks about having to change that setting on every browser…which is a bit confusing, since the notifications would be sent to an app rather than a browser, so I am not sure what that means? Also, when I click the button nothing happens - and it says Permission Denied in the console as I blocked browser notifcations, but again I am unsure how that is relevant to push notifications (and different from the **Desktop Notifications** setting further up in the user settings).

**EDIT:** I also just noticed that **Enable Push Notifications** is not present in my self-hosted installation of Discourse, only in my meta account (hosted installation).

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/custom-push-notifications-allowed-user-api-push-urls/54644)._
