Skip to content

fix(iOS): emit ERROR event when adsLoader fails#2

Open
Ibad9 wants to merge 18 commits intoNextFaze:masterfrom
Ibad9:fix/ios-ad-load-error-callback
Open

fix(iOS): emit ERROR event when adsLoader fails#2
Ibad9 wants to merge 18 commits intoNextFaze:masterfrom
Ibad9:fix/ios-ad-load-error-callback

Conversation

@Ibad9
Copy link

@Ibad9 Ibad9 commented Mar 24, 2026

Issue

On iOS, when IMA adsLoader fails before adsManager is initialized,
no event is emitted to JS, so onReceiveAdEvent is never triggered.

Fix

Emit a ERROR event from:
adsLoader(_:failedWith:)

Impact

  • Enables proper error handling in React Native layer
  • Prevents silent ad failures
  • No breaking changes

Notes

  • Existing ERROR events from adsManager remain unchanged

fnwk and others added 18 commits October 29, 2025 13:39
* feat: add DAI support

* refactor!: unify CSAI and DAI configuration into single ad prop

* fix(android): remove broken wait() in DAI initialization

* feat(android): support HLS/DASH format in DAI

* fix: lint formatting issues

* refactor(android): simplify URI parsing

* refactor(android): rename backupStreamUri to fallbackStreamUri for consistency

* refactor: restore deleted comment

* refactor: remove expo-dai example app

* feat: add streamType field

* refactor: simplify DAI config normalization

* refactor: rename type value from dai to ssai

* docs: replace DAI terminology with SSAI

* docs: change ssai desc

Co-authored-by: Kamil Moskała <91079590+moskalakamil@users.noreply.github.com>

* fix(ios): conditional background playback for DAI based on PiP settings

* fix: remove unused import

---------

Co-authored-by: Maciej Budzinski <maciej.budzinski.93@gmail.com>
Co-authored-by: Kamil Moskała <91079590+moskalakamil@users.noreply.github.com>
…Group#4771)

* Fix IMA ad container not resizing on orientation change (iOS)

* refactor: lint

* chore: change comment text

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* refactor: remove redundant frame initialization

---------

Co-authored-by: Ibad Ahmed <ibadahmed@Ibads-MacBook-Pro.local>
Co-authored-by: Kamil Moskała <91079590+moskalakamil@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants