It seems from our logs that one of these methods is returning nil, and therefore we are not being able to track the cart content properly to the analytics system.
From the signature of these methods, it seems they can return nil, but we have not been able to find under what circumstances this could happen.
- (NSDictionary *_Nullable) sfmc_cartItemDictionaryWithPrice:(NSNumber *_Nonnull)price quantity:(NSNumber *_Nonnull)quantity item:(NSString *_Nonnull)item uniqueId:(NSString *_Nullable) uniqueId;
- (NSDictionary *_Nullable) sfmc_cartDictionaryWithCartItemDictionaryArray:(NSArray *_Nonnull) cartItemDictionaryArray;
Can anyone clarify what are the steps to generate a nil output from these methods?