Skip to content

Commit 33194b8

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 983ab2d commit 33194b8

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
@@ -200,7 +200,7 @@ - (void)deleteOldRedisplayedInAppMessages {
200200
[newRedisplayDictionary removeObjectForKey:messageId];
201201
}
202202

203-
[OneSignalUserDefaults.initStandard saveDictionaryForKey:OS_IAM_REDISPLAY_DICTIONARY withValue:newRedisplayDictionary];
203+
[OneSignalUserDefaults.initStandard saveCodeableDataForKey:OS_IAM_REDISPLAY_DICTIONARY withValue:newRedisplayDictionary];
204204
}
205205
}
206206

0 commit comments

Comments
 (0)