Event threshold callbacks are inconsistent

The event threshold callbacks are inconsistent. We receive the callback 30mins to 1hour late after scheduling or it stops coming suddenly. Is there any limit how many callbacks will be coming per hour or day? Sometimes I don't get the callback at all. Sometimes it works properly for the whole day(Same code without any change).

Additional note: Sometimes I don't receive the schedule start call-back but the event threshold.

Replies

first of all i assume you are talking about shielding apps. when i tried to trigger the threshold callbacks i noticed that the threshold i defined was reached not by one app i selected but as a sum of the usage of all the apps i selected. maybe start from there? if you defined an DeviceActivityEvent with a threshold of X and passed several applications, it means that if the total usage for all the apps combined is X than the callback will fire

if you want each app to have different threshold consider creating DeviceActivityEvent for each app separately

tell me if it was helpful for you