We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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); } });
No response
A new notification should trigger the code, as I have subscribed but it is not being triggered.
Windows
v20.10.0
10.2.5
12.0.1
The text was updated successfully, but these errors were encountered:
Closing as I see related bugs that are already closed
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
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
The text was updated successfully, but these errors were encountered: