OneSignal onNotificationReceived never called!

OneSignal onNotificationReceived never called!
0

#1

Hi, I’m using OneSignal and I got a problem that the callback “onNotificationReceived” never called (“onNotificationOpened” is works).


#2

onNotificacionReceived is called when you receive a push notification and your app is opened.
It works for me.


#3

Strangely, I tried it many times, all listeners worked except onNotificationReceived.
I’m using cocos2dx 3.17, SDKBOX GUI 1.1.7, OneSignal 2.4.2.0

@tranthor, could you show me your sdkbox_config.json?


#4

OneSignal iOS

"OneSignal": {
            "debug": false, 
            "id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx", 
            "auto_register": true
        },