Best practice to receive notifications from newly registered devices (cameras, doorbots..etc)? #1517
-
Hi community, while we're subscribing to notifications, it seems like with this API is promoting subscription to each Am I understand this correctly? Or is there other way of subscribing that I missed? And with this approach, we can't seem to receive notifications from camera that has just been registered/added to the account after this API's listener was spun up. And we have to restart the whole listener to include this new camera. Has anyone hit this as well? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would say that the overall goal of this API isn't about receiving account wide notifications, it's to provide an API representation for the state of each device. Currently the code parses out only notifications required to update device state for things like motion/dings, even though there are many other push notifications. You can subscribe directly to the pushReceiver There is an older PR, which would likely need to be updated for current versions, to add support for manually refreshing devices via a |
Beta Was this translation helpful? Give feedback.
I would say that the overall goal of this API isn't about receiving account wide notifications, it's to provide an API representation for the state of each device. Currently the code parses out only notifications required to update device state for things like motion/dings, even though there are many other push notifications.
You can subscribe directly to the pushReceiver
onNotification
method and do what you will with the raw notifications (I do the same foronDataUpdate
for locations in my own project), but this probably will not resolve any issue with not receiving push notifications for new devices because devices must be explicitly subscribed and, currently, there is no dynamic devic…