Comment to 'How to setup push notifications for mobile apps'
  • Hello,

    I'll try to describe how push notifications work in UNA.

    Note: I am talking about Web push notifications which work with BROWSERS on Andriod mobile devises and on PC, but don't work in browsers on IOS/MAC and in mobile apps.

    If you like to enable push notifications for your UNA site, first you need to define settings in OneSignal account for Web Push Platforms like described here https://github.com/unaio/jot-client-una and then set OneSignal settings in UNA global settings (studio -> settings -> push notifications) and after that, if you did everything correctly, push notifications should start to work on your site.

    Jot Server is not connected with push notifications and doesn't influence on them. I have provided with link to Jot client only as an example, because at present we don't have instructions for UNA site, but will add it soon.

    Modules which can send push notifications by default in UNA:

    There are two modules which can send push notifications by default: Messenger and Notifications modules. Messenger can work separately from Notifications module and you may send push notifications only from Messenger. In this case you should set OneSignal settings only in Messenger's settings.

    If you like to enable push notification for Notifications module, you need to define global settings in UNA settings (studio -> settings -> push notifications).

    The best way is to define OneSingal settings in global UNA settings (studio -> settings -> push notifications) and then just enable ability to use global settings in Messenger, then push notification from Notifications and Messenger module are sent throuth global settings under Notification's module control. I mean you may control which notification's type can be sent as push or as email and so on...

    If you want to enable push notifications for Mobile apps (IOS and Andriod apps and not for browser's on mobile devices as describe above), then you need to enable settings for Native App Platforms in OneSignal settings and don't need to add or change anything additional in UNA, they should start to work in mobile apps