I'm using the following code to request push and local notification permission:

```
let application = UIApplication.shared
let settings: UIUserNotificationSettings = UIUserNotificationSettings( types:  [.alert, .badge, .sound], categories: nil )

application.registerUserNotificationSettings( settings )
application.registerForRemoteNotifications()

```

I need to wait for the user to either accept or decline the notifications before I take an action. How can I achieve this?