iOS 10 Foreground Notification


I want to show native foreground notifications in iOS 10. Upon reading, I found UNNotificationPresentationOptions but I don't see a way to add this as UAPush userNotificationTypes. I am on Objective C. Have anyone solved this? 


Didn't find what you were looking for?

New post


1 comment

  • Hi Parag,

    As noted in our docs page, to set your Foreground Presentation Types, you'll need to modify the UAirship Push defaultPresentationOptions to include the presentation types that you want.

    For example:

    [UAirship push].defaultPresentationOptions = (UNNotificationPresentationOptionAlert |
    UNNotificationPresentationOptionBadge |

    If you would prefer, you may also provide options per notification by providing a UAPushNotificationDelegate. An example of this can be found in the PushHandler class in our Sample App.

    Comment actions Permalink

Please sign in to leave a comment.