When to turn on Notifications from the client

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
chsi_1572801
Level 3
Level 3
First like received

I have a generic question about notifications. Is it OK or good to have the client turn on notifications for one or more characteristic at connect time, right after I get the callback from the the services query on the client, and just leave them on? OR is it better to turn notifications on and off as needed. In my situation the server only sends notification data as user defined packets based on triggered events and never a continues stream. 

   

Thanks

   

-Chris

0 Likes
2 Replies
Anonymous
Not applicable

Hi Chris,

   

It is recommended to turn ON and OFF the notifications when the client only needs. This would save power as it avoids notifications being sent by the server which will however be ignored by the client at time when it does not need.

   

However, apart from this, there is no problem in keeping them ON all the time.

   

Regards,

   

-Madhu Sudhan

0 Likes
chsi_1572801
Level 3
Level 3
First like received

Sounds good and thanks

0 Likes