Jump to content
uniGUI Discussion Forums
FFREDIANELLI

Push Notifications

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>

Share this post


Link to post
Share on other sites

Hello,

Is there any specific reason for using Onesignal? I saw it is expensive?

Why you are not using firebase?

Share this post


Link to post
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 ?

Share this post


Link to post
Share on other sites

Onesignal and Google Firebase working same actually. It's depends on you.

 

Share this post


Link to post
Share on other sites

If is not possible do put an example someone at least know how to answer my first question ?

Share this post


Link to post
Share on other sites

Hello, I'm working on onesignal. I will share example soon. It is not that much easy to implement

Share this post


Link to post
Share on other sites
On 19/05/2019 at 00:50, Hayri ASLAN said:

Oi

Por favor, verifique este exemplo e modifique com base no seu appid.

UniOneSignal.rar

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 !!

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
3 minutes ago, Hayri ASLAN said:

Por favor, verifique o console. Você tem algum erro?

I have no error, I'm testing on my local machine with http: // localhost: 8077

Share this post


Link to post
Share on other sites
1 minute ago, eduardosuruagy said:

I have no error, I'm testing on my local machine with http: // localhost: 8077

What is your site setup looks like? Mine is:
I just tested again and it is working

image.png.58fd327ce2f564b4fd189e2bdcf40760.png

 

image.png.0a04f62d0f88bd83b8e1aff64e797234.png

Share this post


Link to post
Share on other sites
17 minutes ago, Hayri ASLAN said:

Como é a configuração do seu site? O meu é:
acabei de testar novamente e está funcionando

image.png.58fd327ce2f564b4fd189e2bdcf40760.png

 

image.png.0a04f62d0f88bd83b8e1aff64e797234.png

I received your notification here on my computer, kkkkk

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×