We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c497f2 + 6f08df3 commit 24cb7d2Copy full SHA for 24cb7d2
iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Requests/OSInAppMessagingRequests.m
@@ -43,8 +43,10 @@ + (instancetype _Nonnull) withSubscriptionId:(NSString * _Nonnull)subscription
43
headers[@"OneSignal-Session-Duration" ] = [sessionDuration stringValue];
44
}
45
headers[@"OneSignal-RYW-Token"] = rywToken;
46
- headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];
47
-
+ if ([retryCount intValue] > 0) {
+ headers[@"OneSignal-Retry-Count"] = [retryCount stringValue];
48
+ }
49
+
50
request.additionalHeaders = headers;
51
52
NSString *appId = [OneSignalConfigManager getAppId];
0 commit comments