react-native-sdk icon indicating copy to clipboard operation
react-native-sdk copied to clipboard

Re-enable push notifications

Open burakson opened this issue 2 years ago • 1 comments

We would like to allow users to disable and enable their push notifications from our application. Disabling push notifications for specific device works fine with disableDeviceForCurrentUser. However, there is no equivalent to re-enable the device.

We do have autoPushRegisteration: true in the configuration but calling setEmail when the user re-enables push notifications does not seem to do the job. Can you please tell us how this could be achieved?

In the Rest API documentation, POST /api/users/registerDeviceToken seems to be the way to go but we can't see this method being exposed in this sdk.

Thanks.

burakson avatar Dec 20 '23 21:12 burakson

Thanks for bubbling this up, it looks as though only disableDeviceForCurrentUser is exposed in the RN bridge. We'll get a ticket logged to exposing that function on RN.

davidtruong avatar Jan 24 '24 19:01 davidtruong