Hello everyone, I tried to catch Ironsource events with this code.
It's able to catch most events but it misses events like onInterstitialAdOpened, onInterstitialAdShowSucceeded, etc.
I am wrapping this code
instead, I get this in the unfiltered log:
Please is anything wrong with my code?
It's able to catch most events but it misses events like onInterstitialAdOpened, onInterstitialAdShowSucceeded, etc.
I am wrapping this code
B4X:
Dim CallBack As Object = IronsourceInstance.CreateEventFromUI("com.ironsource.mediationsdk.sdk.InterstitialListener", "IronSourceAds", Null)
' Dim CallBack As Object = IronsourceInstance.CreateEvent("com.ironsource.mediationsdk.sdk.InterstitialListener", "IronSourceAds", Null)
IronsourceInstance.RunMethodJO("setInterstitialListener", Array(CallBack))
The event catcher:
Private Sub IronSourceAds_Event(MethodName As String, Args() As Object) As Object
LogColor("IronSourceAds_Event", Colors.Cyan)
Log(MethodName)
End Sub
instead, I get this in the unfiltered log:
Unfiltered Log:
[OkHttp] sendRequest<<
isInterstitialReady():true
showInterstitial()
showInterstitial(DefaultInterstitial)
MTKProgramCache.generateProgram: 563053037879364
createProgram 0x0002001800500044, binary 0x7afb621f80, length 12956, format 37168 within 1310ns
** Activity (main) Pause, UserClosed = false **
onPause()
NetworkCallback for was not registered or already unregistered
DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@3c8c1ae[]
[OkHttp] sendRequest<<
onInterstitialAdOpened()
Ignoring event: ironsourceads_event
onInterstitialAdShowSucceeded()
Ignoring event: ironsourceads_event
Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
Please is anything wrong with my code?