guide on onesignal

guide on onesignal

  

hello, 


I've tried using onesignal plugin, and I already setup some steps :

1. make google project.

2. make onesignal account.

3. configure android on onesignal account.


After that, I login on my mobile phone to register my device to onesignal.



Finally,  I put the restapi key value and one signal appid, but it's not working.


kindly help please, thank you :D

Solution

Hi!

I had the problem of not viewing the notifications while using the app because it is in the foreground, i.e., with the focus.

Now, we can set the way we see notifications in property InFocusDisplayOptions. 

In my case, I set it to NOTIFICATION, but you have these possible values:

- NOTIFICATION: Show notifications while the app is in focus. It can be distracting.

- IN_APP_ALERT: Show notifications in a native alert dialog. It can be useful during development.

- NONE: notifications are silent and not shown while the app is in focus.


I don't know if you saw it, but there's this topic on how to use OneSignal push notifications.


I hope this helps you.

Kind regards,

jaime

Solution

Hi Jaime, 

it's still not working if I use from my backend.

When I debug,  the success value return false, but the error response is only filled with 1 row, and the string is empty.

If i tried sending directly from onesignal web, it succed.

nvm, solved it.

I thought if i assign the value directly, it's the same with listappend.

the problem is the content message I sent is considered empty :(

Thank you.

Hi!

I'm glad you resolve it!

Cheers!

Jaime

Hello guys may be you can help me. I'm trying to use OneSignal but I receive 400 bad request error. I really I don't know why. Anyone know this error?

Eduardo Benites wrote:

Hello guys may be you can help me. I'm trying to use OneSignal but I receive 400 bad request error. I really I don't know why. Anyone know this error?

Hi Eduardo,

Maybe you can provde the screenshot of the steps when you receive this error ?