-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various API issues: getToastList doesn't provide results, closeToast doesn't work #3
Comments
Seems that getToastList https://github.com/webosose/notificationmgr/blob/master/src/NotificationService.cpp#1975 and closeToast look into the history db8 kind ( notificationmgr/src/NotificationService.cpp Line 1455 in b4060e7
|
It's not a bug. To save a toast notification into the database, you have to call the com.webos.notification/createToast | webOS OSE website The following sample code creates toasts on two displays and calls
|
After creating Toasts with a luna-send call, they will not appear in the getToastList call.
Steps to reproduce:
luna-send -n 1 -a com.webos.app.notification luna://com.webos.notification/createToast '{"message":"Test toast"}'
{"returnValue":true,"toastId":"com.webos.app.notification-1706114641627"}
luna-send -n 1 -a com.webos.app.notification luna://com.webos.notification/getToastList '{"displayId":0}'
{"returnValue":true,"toastInfo":[]}
Expected details of the Toasts as per API: https://www.webosose.org/docs/reference/ls2-api/com-webos-notification/#gettoastlist
Same for the closeToast call. Trying with both sourceId or toastId gives returnvalue "true", however the Toasts are not being closed.
The text was updated successfully, but these errors were encountered: