Hi :
Because not many developer use the kernal API ,so we haven't prepair the API documents yet.
For the OnContactAdded method , the first argument mean the current user.
You can use new AppChatIdentity(...) like the ChatProvider integration code does.
the userid mean the target contact user being added.
But I am not sure the OnContactAdded would resolve your request.
--
the AppDataManager just provide some API to read/write data to database .
We will provide more documents on it .
If you have more question on the class , please post it to the forum.
Regards , Terry .