You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i would expect that isSdkInitialized returns true.
This would not be a problem, if I wouldn't want to request bids inside the InitializationListener.
When I try this, this leads to the following error: PrebidBidLoader: SDK wasn't initialized. Context is null.
To Reproduce
Steps to reproduce the behavior:
Initialize PrebidMobile
Call PrebidMobile.isSdkInitialized() inside the initialization listener
Request Bid inside the InitializationListener
Expected behavior
I would expect PrebidMobile.isSdkInitialized() to return true and also that bids can be requested inside the InitializationListener.
Screenshots
None
Desktop (please complete the following information):
None
Smartphone (please complete the following information):
Android (using Prebid-Mobile)
Additional context
The fix would be to move this line above the listener.onInitializationComplete
I just wanted to discuss whether there is any reason for this behaviour or if I can just submit a merge request to fix this behaviour.
The text was updated successfully, but these errors were encountered:
I am also running into the same error: PrebidBidLoader: SDK wasn't initialized. Context is null. when on the MainActivity page. But if I navigate to the SecondActivity or Dialog prebid runs as expected.
Describe the bug
When calling
i would expect that
isSdkInitialized
returnstrue
.This would not be a problem, if I wouldn't want to request bids inside the InitializationListener.
When I try this, this leads to the following error:
PrebidBidLoader: SDK wasn't initialized. Context is null.
To Reproduce
Steps to reproduce the behavior:
PrebidMobile.isSdkInitialized()
inside the initialization listenerExpected behavior
I would expect
PrebidMobile.isSdkInitialized()
to returntrue
and also that bids can be requested inside the InitializationListener.Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The fix would be to move this line above the
listener.onInitializationComplete
I just wanted to discuss whether there is any reason for this behaviour or if I can just submit a merge request to fix this behaviour.
The text was updated successfully, but these errors were encountered: