User sessions by timers

Team,

If I have userId, Can I get user’s session in background services I mean in timers?
We want to restrict notification when users are logged out from app.

Hello @Baljeet_Singh

I’m not sure I understand your question, could you please provide more details?

Can I get user’s session in background services I mean in timers

Are we talking about Timers in the Backendless Business Logic?

Regards, Vlad

Yes timers. Can we get user sessions in timers by userIds?

user sessions - do you mean user-token?

I think now I’ve got the clue what you are looking for…
You do not want to send push notifications to users what are not logged in, am I right?

Correct.

Ok, what about to remove device registration when user does logout?

Backendless.Messaging.unregisterDevice()