Currently, the API to disable a push is by forcing to pass an invalid FCM token so the push notification will bounce:
Klaviyo.instance.sendTokenToKlaviyo('<space>');
Proposal
I think a clearer API like disablePush is far more straightforward. Optionally, the native SDKs should provide a similar API to better handle server-side disabling of push notification when FCM or APN tokens were forced expired because of user logout / switch use cases.
Overview
Currently, the API to disable a push is by forcing to pass an invalid FCM token so the push notification will bounce:
Proposal
I think a clearer API like
disablePush
is far more straightforward. Optionally, the native SDKs should provide a similar API to better handle server-side disabling of push notification when FCM or APN tokens were forced expired because of user logout / switch use cases.What do you think about this? @drybnikov