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

Soft unsubscribe particular device #219

Open
2 tasks done
Jack25apr opened this issue Oct 9, 2024 · 0 comments
Open
2 tasks done

Soft unsubscribe particular device #219

Jack25apr opened this issue Oct 9, 2024 · 0 comments

Comments

@Jack25apr
Copy link

Jack25apr commented Oct 9, 2024

Checklist

Description

Hi!
Is it possible to add such feature:
Use Case:
We want to have possibility to "soft unsubscribe" particular device,
without creating custom properties and filtering during campaign creation, not for the WHOLE profile, but for particular device.

Currently we have toggle button in our app, that allows disabling push notification for particular device.
Also we have additional push notifications services(i.e. customer support chat) and we CANT just guide user to disallow all push notifications for the whole app.

Proposed Solution

Make possibility to override `enablement_status` when sending pushToken for example.
For now we always sending real subscription status aka `enablement_status`


//  Klaviyo.swift
...
 public func set(pushToken: String) {
        Task {
            let enablement = await environment.getNotificationSettings()
            dispatchOnMainThread(action: .setPushToken(pushToken, enablement))
        }
    }


### Alternatives Considered

Or add separate specific call for overriding enablement_status
Or add separate field for device and consider new device field if it is set and its ON/ALLOWED/AUTHORISED when sending push notifications.

### Additional Context

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

No branches or pull requests

1 participant