Android Question Best way to Wait for ReceivedAd or FailedToReceiveAd

Ferdari

Active Member
Licensed User
Longtime User
Hi Everyone,

I'm having trouble when loading and IAD from FirebaseAdmob2, i want to load the Ad and wait before continuing the app process.
Ex. User press Share from my app, app loads an Ad and when loaded shows the Ad, then continues the Share code(open app sharing selector), if i use Wait For ReceivedAd and ad load fails then my app keeps waiting forever.

Is there a way to return Wait for ReceivedAd or Wait For FailedToReceiveAd?

Maybe its very easy question, but im out of ideas to do it.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is not trivial but possible:
 
Upvote 0

Ferdari

Active Member
Licensed User
Longtime User
You are the best @Erel, Thanks, im testing..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…