Estoy trabajando en una aplicación ios, ahora quiero obtener la acción del botón Permitir de notificación push, el usuario será empujado al segundo controlador de vista una vez que el usuario seleccione una de las opciones de notificación push (no permitir, permitir).
Debe llamar a estos métodos en AppDelegate Class.
//Ios 10 delegates for Push Notifications func userNotificationCenter( _ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping ( _ options: UNNotificationPresentationOptions) -> Void){ print("Handle push from foreground") } func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void){ print("Handle push from background or closed") }