Related app/team name (not a must if you want to keep it private):
Trophy Hunter Reforged
Issue Description:
I can not remove a ow_internal_rendered
listener
Can you reproduce it (exact steps to reproduce):
I try to remove the listener after ow_internal_rendered
is fired for the first time:
const handleInternalRendered = () => {
console.log(`Ads ready`);
owAd.removeEventListener('ow_internal_rendered', handleInternalRendered);
// more code
};
owAd.addEventListener('ow_internal_rendered', handleInternalRendered);
Sadly, it doesn’t remove the listener. Ads ready
are still fired.
Impact for my app: [e.g. x% of the users complained about it, it’s a show-stopper]
It’s not a show-stopper.
Do you currently have a workaround?
I check if the listener was called before.
let owAdIsRendered = false;
const handleInternalRendered = () => {
if (owAdIsRendered) {
return;
}
owAdIsRendered = true;
owAd.removeEventListener(
'ow_internal_rendered',
handleInternalRendered
);
// more code
};
Please reproduce and attach a zip package of your OW client logs
Please mention the time of the event so we can find it easily in the logs
I hope the code snippets are enough :).