Session Manager is null


#1

Hello,

I’m trying to use Fabric for integrating Twitter sharing in my app. But Twitter.getSessionManager() is always null, and after success login is null too. So, when I trying to use

StatusesService statusesService = Twitter.getApiClient().getStatusesService();
statusesService.update(...)

it crashes because TwitterCore try to get active session inside it.
What I’m doing wrong?


Twitter.getSessionManager() is null / using fabric-generated ios token
#2

Finally, I’ve resolved the problem using TwitterSession object separately:

StatusesService statusesService = Twitter.getApiClient(activeSession).getStatusesService();

In this case it worked, but I should manage current session in my code (save, restore, etc)


#3