Jump to content

Push Notifications


FFREDIANELLI

Recommended Posts

Hi, I would like to put push notification code on my webpage, the onesignal instructions sas to put on head section of top page a specific code, how do I configure this on unigui ? custom meta ?

and the files that i have to put in my webpages in custom files, i think.

Someone that is alwready using this can help me ?

This is the code:

<link rel="manifest" href="/manifest.json" />
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
<script>
  var OneSignal = window.OneSignal || [];
  OneSignal.push(function() {
    OneSignal.init({
      appId: "bla bla bla...",
    });
  });
</script>

Link to comment
Share on other sites

It's free for 2000 messages day. 

I whant to android/iphone/chrome pops up when some event in ERP is relevant to the user, I don't know but unigui will pops something only if the application is oppened.

Is it possible to do it with firebase ?

Link to comment
Share on other sites

  • 3 weeks later...
1 hour ago, eduardosuruagy said:

I would like to deploy this on my system, I tried to create an account for me la no app.onesignal.com but when I send the messages they do not arrive in my application !!

Please check console. Do you have any error?

Link to comment
Share on other sites

42 minutes ago, FFREDIANELLI said:

Hi hayri, Is there  some difference in configurantion of unigui if I use HTTPS ?

Nope,

I just wanted to test localhost so i used http.

You should use https in production to be able to enable autoresubscribe

Link to comment
Share on other sites

  • 1 year later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...