Skip to main content
Question

DND TRacking

  • July 7, 2022
  • 1 reply
  • 671 views

Is there a way to track how long someone has their phone set to DND?

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2312 replies
  • July 7, 2022

Yes, you can implement a simple app to subscribe for user presence notifications. Every time you get a presence event notification, parse the payload and detect if a user DnD presence is "DoNotAcceptAnyCalls" , mark the time and wait until you get an event when the user presence changed to "TakeAllCalls", then calculate the time difference.

Let me know what programming language you are using so I can give you better guidance.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings