• Resolved dmasin

    (@dmasin)


    Hi,
    Is it possible to register for notifications sent by a single OneSignal App through more domains?
    I am running bi-lingual site, like domain.com and domena.cz.
    It would be great that even at domena.cz the users could register for notifications sent by domain.com (and recieve domain.com notifications subsequently). Something like that at after visitting domena.cz, they would see pop-up “Will you allow domain.com to send notifications?”.
    Thanks David

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey David,

    Unfortunately this isn’t possible. Browsers have implemented web push in a way that works best with only one main origin. Separate origins of a site cannot be merged to one app.

    An origin is defined as: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

    If you have more than one origin you’d like to share push on, your options are:

    1. Only subscribe users on one origin

    2. Create separate OneSignal apps for separate origin, but notifications will arrive independently of each other. This means users who subscribe to both sites will receive duplicate notifications if you send the same notification to both apps.

Viewing 1 replies (of 1 total)
  • The topic ‘One app used at multiple domains’ is closed to new replies.