SDK does not fire Prebid impression event URL in DISPLAY interstitial
Describe the bug SDK does not fire Prebid impression event URL in the DISPLAY Interstitial
To Reproduce Steps to reproduce the behavior:
- Enable Events feature on Prebid Server
- Run example "In-App Display Interstitial"
- Check whether the Prebid impression event URL fires or not
Expected behavior Prebid impression event URL (ext.prebid.events.imp) should be fired when the ad is shown
Smartphone (please complete the following information):
- Device: Pixel 8 Pro Simulator
- OS: Android
- Version: API 34
Additional context
- PrebidSDK version: 3.0.0
- Issue does not occur on the "Medium Phone" simulator
Hi @YuriyVelichkoPI, @mdanylov-sigma please take a look at this issue.
From my understanding, the issue is caused by restarting the creativeVisibilityTracker when WebViewBase.onWindowFocusChanged is called. This clears the visibilityHandler which has a visibility runner in queue. While this issue does not happen on VIDEO interstitial, InterstitialView.onWindowFocusChanged only performs pause/resume on the underlying video.
Could we remove AbstractCreative.changeVisibilityTrackerState to make the behavior of display same as video?
I am not sure why this issue can not be reproduced on the Medium Phone emulator.
Hi @YuriyVelichkoPI , @ValentinPostindustria, please review if it is an issue
Hey @elq81hc! Thanks for highlighting this, we're going to check the described scenario!
Hi @YuriyVelichkoPI may I know your though on this issue?
Hi @elq81hc ! Sorry for the long silence, have a crazy week.
Yep, it definitely looks like a bug. From the @mdanylov-sigma comment, I supposed that the ticket was considered in the Mobile PMC and prioritized for the work.
Do you know if this bug is actual for iOS?
Hi @YuriyVelichkoPI! Thanks for looking at this issue.
IOS does not face this issue. Tested on device iOS 15.8 and emulator IOS 17.3
BTW, how do I register to join Mobile PMC?
If your company is a Prebid.org member, ask Katie Morgart [email protected] to add you to Prebid Mobile PMC meetings.
We recently faced this issue as well. I re-assigned this issue to @ValentinPostindustria since he knows the reason and will provide the fix soon.