Foreground Push View

Prev Next

This method allows you to show a notification banner of pushes when the application is in the foreground.

If the app is in the foreground, app pushes are not displayed, but users who receive these pushes are redirected to the deep link in the push notification, and the action set of the push and logs gets triggered. You should trigger this method to display the push notifications when users receive them while the app is in the foreground.

This method should be located after Insider SDK initialization. Check examples from the demo: Objective-C Demo, Swift Demo.

Method Signatures

+(void) setActiveForegroundPushView;

Method Examples

The following code snippets show how to use this method in Objective-C and Swift.

[Insider setActiveForegroundPushView];
Insider.setActiveForegroundPushView()