We are implementing Push Notifications with Klaviyo by using Klaviyo SDKs. We have application-level settings (toggle). The use case is that users have initially accepted push notifications, so it is enabled on the OS level. Then, the user can disable the toggle in the application, which does not disable notifications on the OS level.
When this setting is disabled, we want to delete user consent for Push Notifications in Klaviyo (delete the token). We used the unregister_client_push_token API and successfully removed the token (and consent). However, we noticed that after we called the API, the Klaviyo native SDK recovered the token for the user profile. We found out that this is the behaviour of the Klaviyo native SDK (both Android and iOS) and that a similar issue was filed for the React Native SDK (https://github.com/klaviyo/klaviyo-react-native-sdk/issues/169).
Could you please share guidance or best practices for revoking user consent and tokens with Klaviyo SDK?
Thank you!