You can control the display of Rich Media using two methods:
-
Event-Based Triggering: Set the Rich Media to display upon a specific event (e.g.,
login_success) sent from the app, rather than on app launch. -
SDK Delegate Control: Implement the presentation delegate in your app code to intercept the display request.
-
iOS: Implement
PWRichMediaPresentingDelegateand use therichMediaManager(_:shouldPresentRichMedia:)method (Objective-C:richMediaManager:shouldPresentRichMedia:). Assign your object toPWRichMediaManager.sharedManager.delegate. -
Android: Implement
RichMediaPresentingDelegateand use theshouldPresent(richMedia)method. Assign it viaRichMediaController.setDelegate().
-
iOS: Implement
Return false in these methods if the user is not logged in, then call present() on the Rich Media yourself once authentication is complete.
Comments
0 comments
Please sign in to leave a comment.