I am trying to add the IronSource in Android app.
Building app is success.
But the android app crashes when I call testIronSourceRewardedVideo().
void testIronSourceRewardedVideo() {
auto rewardedVideo =
ee::runOnUiThreadAndWaitResult<std::shared_ptree::IRewardedVideo>([] {
sudoku::FunctionLogger logger("Create ironSource rewarded video");
return getIronSource()->createRewardedVideo(getIronSourceRewardedVideoId());
});
float delay = 0.0f;
sudoku::scheduleOnce(delay += 1.0f, [rewardedVideo] {
ee::runOnUiThread([rewardedVideo] {
sudoku::FunctionLogger logger("Show ironSource rewarded video");
rewardedVideo->show();
});
});
rewardedVideo->setResultCallback([](bool success){
});
}
The following error has occurred:
//-------------------------------------------------
08-06 21:09:22.116 23033-23123/com.handpatton.sudoku E/com.ee.core.MessageBridge: call: Utils_isMainThread doesn't exist!
--------- beginning of crash
08-06 21:09:22.117 23033-23123/com.handpatton.sudoku A/libc: /Users/macintoshi/Documents/Work/Sudoku/Sudoku-Android-2/Sudoku/proj.android/ee-x/jni/../src/ee/core/Utils.cpp:70: bool ee::core::toBool(const std::string &): assertion "value == "true" || value == "false"" failed
08-06 21:09:41.519 23033-23123/com.handpatton.sudoku A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 23123 (GLThread 249)
//-------------------------------------------------
Please let me know how to fix this error.