Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a better API to disable push notifications #10

Open
joshuadeguzman opened this issue Jan 3, 2024 · 1 comment
Open

Provide a better API to disable push notifications #10

joshuadeguzman opened this issue Jan 3, 2024 · 1 comment

Comments

@joshuadeguzman
Copy link

joshuadeguzman commented Jan 3, 2024

Overview

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.

Klaviyo.instance.disablePush();

What do you think about this? @drybnikov

@joshuadeguzman
Copy link
Author

joshuadeguzman commented Jan 8, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant