Skip to content

Commit 559f15a

Browse files
Update swift-sdk/Internal/in-app/InAppMessageParser.swift
Co-authored-by: Joao Dordio <[email protected]>
1 parent e78a4eb commit 559f15a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

swift-sdk/Internal/in-app/InAppMessageParser.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct InAppMessageParser {
8181
return .failure(.parseFailed(reason: "no messageId", messageId: nil))
8282
}
8383

84+
// Check if the jsonOnly key is present and is set to 1 (true)
8485
let jsonOnly = (json[JsonKey.InApp.jsonOnly] as? Int ?? 0) == 1
8586
var customPayload = parseCustomPayload(fromPayload: json)
8687

0 commit comments

Comments
 (0)