title: Swift Cancel Push Notification Before Showing
body: <p>I developed an app with Swift for IOS 10.2 . I use Apple Push Notification from server. In this app I use UserDefaults for user settings.<br/> I want that If the user wants to receive news of the day, My Application Allow showing push notification for news category. As a result Can I manage push notification before showing to user ?<br/> Do I have to keep the settings on the server ? Any suggestion ? Thanks.</p>