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.
1 parent 279cce6 commit 32cf760Copy full SHA for 32cf760
iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m
@@ -267,6 +267,8 @@ - (void)getInAppMessagesFromServer:(NSString *)subscriptionId {
267
OSIamFetchReadyCondition *condition = [OSIamFetchReadyCondition sharedInstanceWithId:onesignalId];
268
OSReadYourWriteData *rywData = [consistencyManager getRywTokenFromAwaitableCondition:condition forId:onesignalId];
269
270
+ // We need to delay the first request by however long the backend is telling us (`ryw_delay`)
271
+ // This will help avoid unnecessary retries & can be easily adjusted from the backend
272
NSTimeInterval rywDelayInSeconds;
273
if (rywData.rywDelay) {
274
rywDelayInSeconds = [rywData.rywDelay doubleValue] / 1000.0;
0 commit comments