HI everyone, I'm using Unity3d + C# + Admob rewarded videos (native, no mediation), target Android.
I use rewarded videos in two places of my game.
* In the main menu, to award diamonds to the player after watching a video. This works perfectly.
* After the player loses, there's an option to keep playing after watching a video. Here the app crash.
The code works like so:
-An ads manager where other classes subscribe to public methods called by the ads callback
- A main menu manager, that subscribes to "OnAdLoaded" and "OnAdRewarded". Both callbacks work just fine. Main menu unsubscribes to the events once you start playing, and subscribes when you come back to it.
- An in game manager, that subscribes to "OnAdClosed" and "OnAdRewarded" when you start playing, and unsubscribes when you return to the main menu.
When you either close or complete the video, the app tries to come back and crashes - force-closes (android 7) or restarts (android 6) -
I get no error messages, I have a console that shows whatever I print (either with print(message) or Debug.Log(message)) inside the game, but crashes before it prints anything, I enclosed the call with a try-catch statement and a print(error.Message) but still crashes and prints no error, and using the logcat doesn't show anything (using logcat -s Unity) or it's extremely hard to find anything (without filtering)
I'm having a really hard time finding what's causing the error if I get no messages, can anyone throw me a hint on how to work on this? Thanks