Skip to content

Commit 3878d77

Browse files
committed
Only include apns-collapse-id if supplied
Old implementation sent an empty string
1 parent 63f4d85 commit 3878d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Knuff/SBAPNS.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ - (void)pushPayload:(nonnull NSDictionary *)payload
5858
[request addValue:topic forHTTPHeaderField:@"apns-topic"];
5959
}
6060

61-
if (collapseID) {
61+
if (collapseID.length > 0) {
6262
[request addValue:collapseID forHTTPHeaderField:@"apns-collapse-id"];
6363
}
6464

0 commit comments

Comments
 (0)