It gets some user data at boot, for example to get the user id. Then it uses message bus to receive notifications. @sam gave me the advice in this post
Probably you may find some useful information here