Wrong method is used to serialize 'expiry' field of 'inapp'
InAppSerializer in line 20 has jsonGenerator.writeStringField("expiry", inApp.getExpiry().get().toString()), which gives output with milliseconds and timezone included. for exmpl. '2017-01-11T12:52:45.213Z'
Should be
jsonGenerator.writeString(DateFormats.DATE_FORMATTER.print(payload.getExpiryTimeStamp().get())); as it is in PushExpirySerializer. Output should be '2017-01-11T12:52:45'
Currently I'm getting exception with 'Error:Invalid 'expiry' value in in_app message payload.' error description inside, when I send inapp with expiry defined
Comments
2 comments