Closed superdiazzz closed 5 years ago
Hi, Sorry for the issue, we've updated the documentation to fix this. Here is also the needed part to enable it:
mInReadAdView.load(new AdSettings.Builder()
.enableValidationMode()
.build());
I have encounter new issue after added attribute inside load ads(enableValidationMode), there was no popup then stacktrace like below
E/EventBus: Could not dispatch event: class tv.teads.sdk.android.engine.web.event.OpenDialogRequest to subscribing class class tv.teads.sdk.android.engine.ui.UIEngine android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:765) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:356) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:92) at android.app.Dialog.show(Dialog.java:330) at tv.teads.sdk.android.utils.DialogUtils.a(DialogUtils.java:65) at tv.teads.sdk.android.engine.ui.UIEngine.onEvent(UIEngine.java:325) at java.lang.reflect.Method.invoke(Native Method) at org.greenrobot.eventbus.EventBus.invokeSubscriber(EventBus.java:485) at org.greenrobot.eventbus.EventBus.postToSubscription(EventBus.java:416) at org.greenrobot.eventbus.EventBus.postSingleEventForEventType(EventBus.java:397) at org.greenrobot.eventbus.EventBus.postSingleEvent(EventBus.java:370) at org.greenrobot.eventbus.EventBus.post(EventBus.java:251) at tv.teads.sdk.android.engine.web.WebEngine.a(WebEngine.java:407) at tv.teads.sdk.android.engine.web.commander.webview.WebViewBridge.openDialog(WebViewBridge.java:518) at tv.teads.sdk.android.engine.web.commander.webview.Commander.openDialog(Commander.java:368) at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:41) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65)
hmm, that's weird. Do you think you can isolate the issue in a new app, following #140 ?
Hi! Even if the validation tool is enabled, the popup does not appear to me.
requestSettings = AdRequestSettings.Builder()
.pageSlotUrl("http://teads.com")
.enableValidationMode()
.build()
Did not noticed any exception in the logs or any clue why the validation popup doesn't appear. Any tips/idea? Thanks!
Hi @adlibsv,
Can you give us more context about your integration type ?
Thank you for your feedback !
Hi! Here are the answers to the questions above:
Hi @adlibsv
I can see in logs that the validation mode is not enabled, did you put the setup the settings correctly ?
Can you create another issue to get correct following regarding this ?
Thank you,
I created an issue with your previous message
I can see in logs that the validation mode is not enabled, did you put the setup the settings correctly ?
Really sorry about that - I think we logs pasted here are not correct, I must have been collected them when the validation mode was not enabled. Anyways, noticed that when it is enabled, then the popup does not appear, BUT in the logs there is something like:
W/teads#LoggerBridge: To start the validation, open this page on your desktop:
https://sdkvalidation.teads.tv/1NLp4JuPZ
Waiting for the first test to start...
and when clicking the link it does open in the browser.
Do you have an an blocker?
Based on this website https://support.teads.tv/support/solutions/articles/36000166954-5-validate-your-integration-beta- to use validation mode, i have to enable validation mode on SDK but i don't know how to do it? Can somebody explain to me how?