How to show alert dialog using urbanairship ios sdk.

I need to show an alert dialogue kind of view similar to a customised inapp notification.

Is it possible in the iOS SDK?

 

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Muralidharan,

    This is possible, however that functionality is not necessarily dependent on the Urban Airship SDK.

    What you'll need to do is follow our guide for Handling Push Notifications. This will allow you to be able to access the push notification alert such that you can present it to the user using the UIAlertController class.

    Be aware, however, that presenting a pop-up alert to the user any time when the app is foreground is seen as a rather intrusive method of presenting information to the user, and if it's not relevant or necessary, it could cause users to uninstall the app. Consider using the provided in-app message functionality for this purpose.

    0

Please sign in to leave a comment.