OneSignal-Cordova-SDK icon indicating copy to clipboard operation
OneSignal-Cordova-SDK copied to clipboard

different between onesignal version 2.11 vs 3.3.0

Open vietmaki opened this issue 1 year ago • 9 comments

How can we help?

Before i use onesignal version 2.11, when I push message notification, if app is focus, 1 alert popup show in center app, but when i update onesignal version 3.3.0, not show alert popup, just show in notification bar. How can i show message notification popup alert when app focus

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

vietmaki avatar Apr 13 '23 16:04 vietmaki

Hello the documentation reference for this is here

emawby avatar Apr 13 '23 17:04 emawby

i mean alert message with view now button

vietmaki avatar Apr 13 '23 17:04 vietmaki

Were you doing something like this in your notificationReceivedHandler? alert("Notification Received:\n" + JSON.stringify(notificationData));

You can do something similar using the setNotificationWillShowInForegroundHandler

emawby avatar Apr 13 '23 17:04 emawby

android ok, but ios not working

vietmaki avatar Apr 14 '23 07:04 vietmaki

any solution? I have the same issue

xJosee avatar Apr 14 '23 15:04 xJosee

Can you describe the issue? Is the alert not displaying or the json not parseable?

emawby avatar Apr 14 '23 19:04 emawby

Can you describe the issue? Is the alert not displaying or the json not parseable?

In Android if I get the push notification but I do not get the preview or sounds, only the icon remains in the notification bar, I want to show the preview of the push notification.

xJosee avatar Apr 14 '23 19:04 xJosee

what kind of message popup use in version 2.11.

vietmaki avatar Apr 20 '23 08:04 vietmaki

Hello I apologize for the late follow up is this still an issue in the latest versions?

emawby avatar Nov 03 '23 21:11 emawby