This method must be called on the main thread was thrown while invoking showAd
See original GitHub issueTrying to load an interstitial ad, on touchable opacity press. Displays the error shown in the issue title.
Exception ‘This method must be called on the main thread’ was thrown while invoking showAd on target CTKInterstitialAdManager with params ( “PLACEMENTID”, 30, 31 )
onPress = {
() => {
this.showFullScreenAd()
}
}
showFullScreenAd() {
InterstitialAdManager.showAd("PLACEMENT_ID_WAS_HERE").then(didClick => {}).catch(error => {});
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:11 (7 by maintainers)
Top Results From Across the Web
This method should not be called on the main thread ...
"This method should not be called on the main thread as it may lead to UI unresponsiveness." In my case I've traced it...
Read more >AtomicReference#compareAndSet bogs down main thread ...
I've tried a bunch of different combinations of method layout where I only get the current map and create a new modified map...
Read more >Change log | Entities | 0.17.0-preview.42
Fix crash when using singleton access methods with types with generic ... cannot throw exceptions (since called as burst delegate from main thread.) ......
Read more >Java Applications on Oracle Database
The main() method is called when you enter the following command on the ... If you are not using the command-line interface, you...
Read more >Scalable Simulation via Direct Execution of Multi-threaded ...
Using our techniques, multi-threaded application software run- ning in virtual hosts will function as intended, while the virtual host threads will not ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
okay, I’ll try to fix it tonight.
We bumped the Facebook SDK version for next version, so going to close it.