Closed nathany closed 9 years ago
@tylrtrmbl I ended up using a pointer to Alert, but by allocating it in NewPayload there shouldn't be much of an impact on callers.
Setting APS.Alert to nil
will prevent it from serializing, but I do a length check in MarshalJSON to nil it for you. Because I didn't use reflection, this list of fields needs to be maintained, such as in #9.
FYI: This will merge conflict with #9, but I can easily fix that once one of these is merged.
This is looking good. I dig using the conversion from APS
to a map
. Will merge in a few unless anyone objects
Thanks. :+1:
This looks great.
@bdotdub Any changes needed or can this be merged? Thanks.
closes #5
For Passbook and Newsstand notifications.