here are the apple docs on this: https://developer.apple.com/library/prerelease/mac/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW12
'url-args' is required for safari website notifications
Thanks for pointing this out. To keep it inline with the rest of the module this change also requires the appropriate setters as well as the accompanying docs. If you wish to add this I will include it, otherwise I will incorporate it in my next batch of work.
updated setter and toJSON for url-args
Updated the setters but i haven't update the documentation, because the url-args are web payload specific.
remove duplicate code
That looks good for me so far. The option should still be documented - that the method exists, and preferably a link to the apple doc page discussing the url-args parameters.
Included in v1.4.2