Skip to content

Push alarm notifications are still received after logout. #304

Description

@OmMakwana221

ThingsBoard Platform Version

v4.3.1.1

Affected platforms

Android

ThingsBoard Platform Type

ThingsBoard PE Cloud

App Release Version

1.8.1

App type

ThingsBoard Cloud app

Steps to reproduce

  1. Log in to the ThingsBoard Mobile App.
  2. Ensure push notifications are enabled and alarm notifications are working correctly.
  3. Leave the app unused until the authentication token expires (or wait for the automatic logout to occur).
  4. Confirm that the user has been automatically logged out (without manually logging out).
  5. Trigger a new alarm notification for the same user/device.

Expected results

  • Once the user has been automatically logged out because the authentication token has expired, the application should no longer receive push notifications.
  • The FCM token should either be removed, unregistered, or ignored after the session becomes invalid.
  • Push notifications should only be delivered to authenticated users with an active session.

Actual results

  • Even after the application has automatically logged out due to token expiration, the device continues to receive alarm push notifications.
  • This means notifications are delivered to a user who is no longer authenticated.
  • This is a security and privacy concern because notifications continue to be received after the session has ended.

Additional information

This is a critical issue and should be addressed as soon as possible.

If fixing this requires changes in a future mobile app release that may take some time, could you please provide:

  • A temporary workaround, or
  • The required code changes to unregister/delete the FCM token when the user is automatically logged out due to token expiration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions