Hi, I’m using OneSignal and I got a problem that the callback “onNotificationReceived” never called (“onNotificationOpened” is works).
onNotificacionReceived
is called when you receive a push notification and your app is opened.
It works for me.
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
?
OneSignal iOS
"OneSignal": {
"debug": false,
"id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"auto_register": true
},