Is it possible to have User Profile by UserName

I am using Countly trial version for Windows with C#.

Please consider the below scenario -

  1. "User1" logs in to the app from device named "device1"
  2. I have already implemented necessary code, so I can see it in "User Profile" tab in countly server.
  3. Now from the same device ("device1"), "User1" logs out
  4. "User2" logs in to same device ("device1")
  5. now in countly server I can see only one user in User Profile tab name "User2", though I can also see event from "User1" also there. No row for "User1" in user profile tab.

So does that mean, user profile identified by device? If so, is there any way that I can see it by UserName. In the above scenario there will be two rows, one for "User1", another for "User2", though they have logged in from same device.

Thanks
A Ahad

0

Comments

6 comments
  • Yes, user is identified by device, but you can change device_id each time user logs out or other logs in, so they would be different.
    Can't tell you for sure how it can be done in C# SDK, maybe @arturs_k can help you with that

    0
    Comment actions Permalink
  • Hello! At the moment having multiple users on the windows sdk is a little problematic. It's also not really possible for all windows sdk targets.

    It currently looks like that the only windows targets where that is possible would be .net3.5, .net4.0 and pcl. For the windows (windows store app), wp7, wp8 targets that currently is not an option because the class that interacts with the device id is currently set as internal.

    You would have to set the device ID every time you start your application, otherwise it uses the default one.

    For .net3.5 and .net4.0 you change it like this:
    Device.DeviceId = "New device ID";

    For PCL you change it like this:
    Device.SetDeviceId("New device ID");

    0
    Comment actions Permalink
  • Thank you for the details.

    Need to check what can be done here. 😦

    0
    Comment actions Permalink
  • What windows target are you using?

    0
    Comment actions Permalink
  • How to deal with the problem for a web application?

    0
    Comment actions Permalink
  • .NETFramework,Version=4.5.1

    0
    Comment actions Permalink

Please sign in to leave a comment.