fakhirsh / FEngine

Highly cross-platform Game Engine. Simple yet powerful Component based, data driven architecture.
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Android: CRASH when displaying Chatboost ads #43

Closed fakhirsh closed 9 years ago

fakhirsh commented 9 years ago

Whenever the ChartBoost ads are requested to be displayed using the generic FEngine API, game crashes.

gApp->GetAds()->ShowInterstitial();

fakhirsh commented 9 years ago

Crash reason:

In FindClass method, the namespace of the Chartboost's Java class was incorrect (in FEngine/Monetize/ChartBoostAdsAndroid.cpp line 58)

Fix:

Jut put the correct package name: _env->FindClass("com/delagames/zombietreat/ChartboostAdsAndroid");