Recent searches
No recent searches
iOS Chat SDK v2 Push token deleting
Posted Nov 08, 2021
Hello
If there any functionality to remove push token for iOS device that was previous registered?
Problem here is that when user logged out from our app can still receive push notifications.
I've found this method https://zendesk.github.io/mobile_sdk_iOS_jazzy_docs/Classes/PushNotificationsProvider.html#/c:@CM@ChatProvidersSDK@objc(cs)ZDKPushNotificationsProvider(im)unregisterPushToken
but it doesn't work.
Could you help me with this?
0
8
8 comments
Eric Nelson
Would you be able to provide the relevant code snippets so that we can see how you are logging users out along with using the unregisterPushToken method?
0
Evgenii Aronov
So I tried 2 approaches:
1) Registering token by calling Chat.registerPushToken(deviceToken) and deleting by calling Chat.pushNotificationsProvider?.unregisterPushToken()
2) Registering token by calling Chat.pushNotificationsProvider?.registerPushToken(deviceToken)
and deleting like in previous.
But had no luck with both cases.
0
Eric Nelson
It's tough to say without seeing the actual snippets to get a complete understanding. Though I'd try something like:
0
Evgenii Aronov
Hello
I've tried this methods and still receiving pushes after calling unregisterToken
0
Evgenii Aronov
Any updates?
0
Eric Nelson
Apologies, I didn't get notified of your update. Do you mind if I move this into a ticket so we can dig into it deeper?
0
Evgenii Aronov
Sure.
0
Eric Nelson
0