[Pushwoosh Plugin] Sending push notifications success BUT not receiving any

[Pushwoosh Plugin] Sending push notifications success BUT not receiving any

  
Forge Component
(8)
Published on 14 Jul by OutSystems R&D
8 votes
Published on 14 Jul by OutSystems R&D

Hello,


I'm trying to implement push notifications into my application, but I'm encountering some problems.

I followed the guide Outsystems is providing for configuring pushwoosh for Android. 

I successfully configured pushwoosh, and i can successfully register my device and send push notifications with my application. However, I'm never receiving one, although sending it is going perfectly fine. (from my application and from the pushwoosh CP itself).

This is a screenshot from a notification send with pushwoosh CP :


(https://i.gyazo.com/2006b2181d0fddb0902740654e1c8291.png)

And this is a notification send with my application :

(https://gyazo.com/38ba5ab8b96b91831a72b490e1311165)


(https://gyazo.com/6550042c3f14496afc05b998b125ff3e)

My device is also registred :


(https://gyazo.com/cffbff135605e222d87c35b635949508)


I'm calling the event : PushwooshNotificationsNotificationReceivedEvent


(https://gyazo.com/4a159367fc5e237bd099cd629965dae4)

In this client action I have a simple feedback message to display the pushnotification. (because the app is open) But this event is never triggered...

Why can I successfuly send push notifications with my app and pushwoosh CP, but not receiving any?(not receiving the pushnotification when the app is closed/background, and the NotificationReceivedEvent is not triggered when the app is open)

Can anyone help?


Greetings,

Niels


Hey, Niels,

Sorry for the late reply (and happy new year, btw). Just a sanity check: I take it you filled in the appropriate application codes and Google Project Numbers, right?

Also, by "successfully register" you mean that the OnRegister callback returns no error, correct?

Finally, could you also check that the app identifier you used to generate the build matches, as well?

Best regards,

Carlos Simões

All the values, Google Project Numbers, API keys, Sender Id, everything matches.

The devices get succesfully registered because in servicecenter a log is being created with teh registertoken of the device. And in the Pushwoosh CP I see the device registred aswel.


Hi Neils, 

Is this issue resolved for you, I am also in the same situation, notifications were sent out successfully, but I am not seeing them on my phone. I verified the setting between FireBase, PushWoosh and GCM, they all look fine. Please let me know. I attached my settings screenshot.

Thank you,

MN

We have a similar problem. When we use "SendNotificationToAll" then the message arrives on every phone. But when using "SendNotificationToDevice"  then message is visible in pushwoosh dashboard , but never arrives on any phone.

As far as we can see all settings and parameters are set correctly.

Any solutions or advice?


Thanks

Lennard


lennard destang wrote:

We have a similar problem. When we use "SendNotificationToAll" then the message arrives on every phone. But when using "SendNotificationToDevice"  then message is visible in pushwoosh dashboard , but never arrives on any phone.

As far as we can see all settings and parameters are set correctly.

Any solutions or advice?


Thanks

Lennard


The problem has been solved by using the  Firebase "Server key" instead of the "Legacy server key" as API in Pushwoosh. Seems that using the "Legacy server key" works for the "SendPushNotificationToAll" plugin action but not for the "SendPushNotificationToDevice".

The push plugin, where did you put the webblock? In the layout or the page? Atleast you got something working, i didn't. While pushwoosh confirms eevrything is send correctly

Niels Favreau wrote:

The push plugin, where did you put the webblock? In the layout or the page? Atleast you got something working, i didn't. While pushwoosh confirms eevrything is send correctly

Hi Niels, i dont know if this applies to you but how we managed to get this working was as follows:

- On the mobile side we have the "PushNotificationsPlugin\PushwooshNotifications" in the "Layout Source Block" with the "PushwooshNotificationsNotificationReceivedEvent" Handler. 

- In the homescreen of the mobile app we use an action to register the device to pushwoosh with the correct application code. 

- On the web application we have a button(NotifyDevice) which calls the "Pushwoosh\SendPushNotificationToDevice" plugin action using the correct "ApplicationCode" and "ApiAccessToken" 

- We also have the app running in native mode

Hope this helps.

Regards,

LDestang