Skip to content

Commit 32e4ace

Browse files
committed
saving OS_IAM_REDISPLAY_DICTIONARY as a codeable
OS_IAM_REDISPLAY_DICTIONARY contains OSInAppMessage objects so we can't save it as a dictionary to userdefaults or we will crash.
1 parent 2746803 commit 32e4ace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OSMessagingController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ - (void)deleteOldRedisplayedInAppMessages {
204204
[newRedisplayDictionary removeObjectForKey:messageId];
205205
}
206206

207-
[OneSignalUserDefaults.initStandard saveDictionaryForKey:OS_IAM_REDISPLAY_DICTIONARY withValue:newRedisplayDictionary];
207+
[OneSignalUserDefaults.initStandard saveCodeableDataForKey:OS_IAM_REDISPLAY_DICTIONARY withValue:newRedisplayDictionary];
208208
}
209209
}
210210

0 commit comments

Comments
 (0)