Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

Unable to delete device on android using react native #135

Description

@krishnakorukanti

Title

Unable to delete device on Android using React Native

Description

I am trying to delete a device from PubNub's channels during logout, which should prevent sending notifications for the device. However, even after executing the deletion code, the device continues to receive notifications.

Code Snippet

const response: any = await pubnub.push.deleteDevice({
    device: deviceToken,
    pushGateway: "gcm"
});

Expected Behavior

The deleteDevice method should remove the specified device from PubNub's channels, preventing it from receiving any further notifications.

Current Behavior

Even after executing the deletion code, the specified device is still able to receive notifications.

Additional Information

  • I have confirmed that the deviceToken being used is correct.
  • The pushGateway parameter is set to "gcm".
  • I have tested this on multiple Android devices with the same result.

Any help in resolving this issue would be greatly appreciated. Thank you!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions