react-chat-components
react-chat-components copied to clipboard
Unable to delete device on android using react native
trafficstars
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!