Differentiate silent notifications from normal push notification

Is there a way by which an incoming notification can be identified as a normal notification or a silent notification?

In this method, 

func receivedNotificationResponse(_ notificationResponse: UANotificationResponse, completionHandler: @escaping () -> Swift.Void) { }

Based on the type of push received, I need to perform different actions.

Any suggestions!

Thanks.

 

 

 

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi,

    Please take a look at the Handling Notifications section of our iOS Developer's Guide. It provides information on how to customize the handling of foreground vs. background notifications. 

    Here is the link to the relevant section:

    https://docs.urbanairship.com/platform/ios/#handling-notifications

Please sign in to leave a comment.