Skip to content

PayloadBuilder gives no access to ObjectMapper #148

@gaoagong

Description

@gaoagong

Ran into an issue where I have a custom element that I want to add to the APNS payload, but the POJO has values which could be null. By default the ObjectMapper inserts null values into the payload, which is a waste of already restricted space. I was hoping for a hook to customize the ObjectMapper used or to at least retrieve the one being used, but it is private static and can't be touched.

I am going to extend the class and only override the method that is using the ObjectMapper, but I think that this functionality should be available by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions