I want like facebook notification add icon when a user relationships or flag friends ( user relationships ou flag friends module ) publish a new content. I follow this good tutorial who is the closest to do that : How to allow users to manage their own Message Stack messages? and it's works perfectly but only for the current user and not relationships or friends. I find also How to implement Facebook style Notifications for Organic Group posts? on this web site.
I would use not only for the current user but for user relationships like a facebook notification. I try many ways for days: using rules, views or custom development (the most closest with hook_node_insert and user_relationships_load } but without success. The problem is you need to notify individually each friends like that they can manage there own notification, if not each time a friend remove a notification it's remove for ALL friends.
By advance thanks