Get all users logged in to app (android)


#1

i am trying to know which users are currently logged in to my android twitter app which i made using fabric.

I have 2 twitter users logged in to my app. user0 with id 0000 and user1 with id 1111.

when I do TwitterCore.getInstance().getSessionManager().getSession(1111), it only returns a session from user1’s device.

from user0’s device it returns null.

also it is the same if instead of TwitterCore.getInstance().getSessionManager(), I use Twitter.getSessionManager()

further, getting the sessionMap via SessionManager.getSessionMap() always returns a map with one entry that is the session of the current user. i can’t get all current sessions.

so is there a way to know which users are currently logged in to my android twitter app? if not, then what is the purpose of the SessionManager and when would getSessionMap get a Map with more than one entry in it?