Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Unable to delete device on android using react native #135

Open
krishnakorukanti opened this issue Apr 1, 2024 · 0 comments
Open

Unable to delete device on android using react native #135

krishnakorukanti opened this issue Apr 1, 2024 · 0 comments

Comments

@krishnakorukanti
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant