pavelzaichyk / flutter_unity_ads

Unity Ads plugin for Flutter Applications. This plugin is able to display Unity Banner Ads and Unity Video Ads.
https://pub.dev/packages/unity_ads_plugin
MIT License
30 stars 12 forks source link

After showVideoAd in Flutter unity ads plugin #8

Closed Anas547 closed 2 weeks ago

Anas547 commented 2 years ago

onTap: () { UnityAds.showVideoAd( placementId: AdManager.interstitialVideoAdPlacementId, listener: (state, args) => print('Interstitial Video Listener: $state => $args'), ); Navigator.push( context, PageTransition( child: MyWeaponArt(), type: PageTransitionType.topToBottom)); },

i call ads like this and i initialize unity only 1 time in initstate

@override void initState() { // TODO: implement initState super.initState(); UnityAds.init( gameId: AdManager.gameId, listener: (state, args) => print('Init Listener: $state => $args'), ); } after show ad i close ad then application restart why???

pavelzaichyk commented 2 years ago

the problem isn't reproduced @Anas547 provide more information: logs, operating system, device info, etc.

willsalasare commented 2 years ago

The same thing happens to me, after the first @override void initState () { implement initState super.initState (); UnityAds.init ( gameId: AdManager.gameId, listener: (state, arguments) => print ('Initial listener: $ state => $ arguments'), ); } the listener does not work again until the app is restarted, does not show any record, as if the listener is not listening

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been inactive for 14 days since being marked as stale.