appodeal / react-native-appodeal

Official React Native package that adds Appodeal SDK support to your react-native application.
https://appodeal.com
59 stars 37 forks source link

event parameter values for eventlisteners are different for Rewarded video #64

Closed vineetshetty closed 3 years ago

vineetshetty commented 3 years ago

Just spent a lot of time debugging this. The eventlistener callback value for AppodealRewardedEvent.CLOSED for iOS and Android are different.

iOS sends an event called event.fullyWatched and android sends an event called event.isFinished. For clarity:

iOS Appodeal.addEventListener(AppodealRewardedEvent.CLOSED, (event: any) => console.log("Rewarded video closed: ", event.fullyWatched) )

Android Appodeal.addEventListener(AppodealRewardedEvent.CLOSED, (event: any) => console.log("Rewarded video closed: ", event.isFinished) )

Not sure about other parameters since this was the only one that I needed.

staskochkin commented 3 years ago

Hello @vineetshetty. Changes will be added in the next release.

staskochkin commented 3 years ago

@vineetshetty Changes have been added into react-native-appodeal@2.7.7

vineetshetty commented 3 years ago

Thank you!