Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Becoming UNUserNotificationCenterDelegate requires forwarding data to Appoxee.

Notification Delegate:

If you choose to become UNUserNotificationCenterDelegate, it will require you to forward its delegate methods to Appoxee:

...

Code Block
titleForwarding calls - Swift
    @available(iOS 10.0, *)
    func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
        
        Appoxee.shared()?.userNotificationCenter(center, didReceive: response, withAppoxeeCompletionHandler: { 
            
			// When the completion handler is called, this means that Appoxee completed it's execution.
			// Call the completion handler.
            completionHandler()
        })
    }

 

And to control the display of notifications in the foreground by yourself.

...