Skip to content
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

onNewNotification subscription is not triggered #1582

Closed
1 task done
mahdirahman1 opened this issue Feb 1, 2025 · 1 comment
Closed
1 task done

onNewNotification subscription is not triggered #1582

mahdirahman1 opened this issue Feb 1, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@mahdirahman1
Copy link

mahdirahman1 commented Feb 1, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Describe The Bug

I am subscribing to onNewNotification but it is not being triggered on motions or dings, here is the code

camera.onNewNotification.subscribe(async (pushNotif) => {
console.log("New notification");
if (pushNotif.subtype === "motion" || pushNotif.subtype === "ding") {
// start recording
console.log("here");
await recorder.startRecording(camera);
}
});

To Reproduce

No response

Expected behavior

A new notification should trigger the code, as I have subscribed but it is not being triggered.

Relevant log output

Screenshots

No response

Additional context

No response

OS

Windows

Node.js Version

v20.10.0

NPM Version

10.2.5

ring-client-api

12.0.1

Operating System

Windows

@mahdirahman1 mahdirahman1 added the bug Something isn't working label Feb 1, 2025
@mahdirahman1
Copy link
Author

Closing as I see related bugs that are already closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant