Skip to content

Commit ed6d6e7

Browse files
author
Rodrigo Gomez Palacio
committed
Bugfix: should not be sending retry-count = 0 on first attempt
Motivation: bring into parity with Android
1 parent 6c497f2 commit ed6d6e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Requests/OSInAppMessagingRequests.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ + (instancetype _Nonnull) withSubscriptionId:(NSString * _Nonnull)subscription
4343
headers[@"OneSignal-Session-Duration" ] = [sessionDuration stringValue];
4444
}
4545
headers[@"OneSignal-RYW-Token"] = rywToken;
46-
headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];
46+
if (retryCount > 0) {
47+
headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];
48+
}
4749

4850
request.additionalHeaders = headers;
4951

0 commit comments

Comments
 (0)