Video ad resume method

I am implementing an award winning video to an app in C ++ on ios and android, but the crash only happened on Android. It only happens occasionally when it goes from background to foreground.

I got Abort message: 'rewarded_video :: Initialize () must be called before this method. in the crash report and I think this is when the resume method from the awarded video is called.

Does anyone know if I have a way to know if a resume should be triggered? Or should it be called whenever the application comes to the fore?

Thanks in advance,

Felipe.

+3


source to share


1 answer


I figured out what the problem is. My android app was creating a different instance when opening from a different source and this was throwing an error message on the awarded video.



I added android: launchMode = "singleTask" to the manifest and it worked.

+4


source







All Articles