Skip to content

Commit

Permalink
Merge pull request #1509 from OneSignal/fix/retry-count-0
Browse files Browse the repository at this point in the history
Fix RYW retry-count first attempt sending 0
  • Loading branch information
Rodrigo Gomez Palacio authored Nov 1, 2024
2 parents 6c497f2 + 6f08df3 commit 24cb7d2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ + (instancetype _Nonnull) withSubscriptionId:(NSString * _Nonnull)subscription
headers[@"OneSignal-Session-Duration" ] = [sessionDuration stringValue];
}
headers[@"OneSignal-RYW-Token"] = rywToken;
headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];

if ([retryCount intValue] > 0) {
headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];
}

request.additionalHeaders = headers;

NSString *appId = [OneSignalConfigManager getAppId];
Expand Down

0 comments on commit 24cb7d2

Please sign in to comment.