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
31 stars 12 forks source link

Some issue with initialization #23

Closed Neo490 closed 3 months ago

Neo490 commented 2 years ago

Hello,

First of all thank you for this plugin :)

The issue is, I've been having this issue since an hour or two. But in previous days it all worked smoothly somehow.

I have the following code:

  Future<void> init() async {
    print('tata');
    UnityAds.init(
      gameId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
      testMode: true,
      onComplete: () {
        print('unity ads init');
      }
    );
    print('tata');
  }

It is not being initialized properly. Only the two "tata"s get logged out, and also the ads do not show (obviously as its not properly init).

Do you have any suggestions?

Neo490 commented 2 years ago

@pavelzaichyk sorry for the ping, but I seek help with your plugin if you can help

pavelzaichyk commented 2 years ago

Hello, check what are in logs and you can add an additional callback onFailed (check the example)

github-actions[bot] commented 4 months ago

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

github-actions[bot] commented 3 months ago

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