Skip to content

apns-collapse-id not working? #129

Answered by kylebrowning
JunyuKuang asked this question in Q&A
Discussion options

You must be logged in to vote

I just tested it and it worked for me. This is 4 pushes, with two different collapse identifiers

try await apns.send(notification, pushType: .alert, to: dt, collapseIdentifier: "1234")
        try await apns.send(
            notification, pushType: .alert, to: dt, expiration: expiry, priority: 10, collapseIdentifier: "1234")
        try await apns.send(
            notification, pushType: .alert, to: dt, expiration: expiry, priority: 10, collapseIdentifier: "12345")
        /// Overriden environment
        try await apnsProd.send(aps, to: dt, on: .sandbox, collapseIdentifier: "12345")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kylebrowning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants