I did try all true/false combinations of enableInAppAlertNotification() and "notifications_when_active". Two scenario appends when app is in foreground: 1) the native alert box is displayed and onNotificationOpened() is called, 2) alert box is not displayed and onNotificationOpened() is not called. I would like it happen like said in the documentation: "enableInAppAlertNotification() By default this is false and notifications will not be shown when the user is in your app, instead the NotificationOpenedHandler is fired."
I have OneSignal 2.3.9 with cocos2d-x 3.13
When app is in background or closed, everything is fine. The native alert box is not displayed when I tap the notification and I can manage it inside onNotificationOpened(). And also I wonder why onNotification() is never called? What is the difference between both callback?
onNotification is DEPRECATED callback, as using by previous OneSignal SDK.
onNotificationOpened right now.
I removed cocos2dx sdkbox onesignal and installed onesignal SDK native Android and iOS
Please login to submit your question.