appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
20 stars 3 forks source link

Ads on iOS are never initialized [Appodeal SDK - 3.2.0] #49

Closed francescovallone closed 11 months ago

francescovallone commented 11 months ago

Steps to Reproduce

  1. Execute flutter run on your application using an iOS device
  2. Set the Appodeal SDK Logging to Verbose

Expected results: Ads on iOS working without a problem

Actual results: The ad is not initialized

Code sample ```dart // My init method called in the main function Future _init(){ final completer = Completer(); Appodeal.setTesting(kReleaseMode ? false : true); Appodeal.setLogLevel(Appodeal.LogLevelDebug); if(isInitialized){ completer.complete(isInitialized); }else{ String platform = 'ANDROID'; if(Platform.isIOS){ platform = 'IOS'; } Appodeal.initialize( appKey: dotenv.get('APPODEAL_${platform}_APPLICATION_KEY'), adTypes: [ AppodealAdType.RewardedVideo, ], onInitializationFinished: (error) => { print(error), if(error == null){ isInitialized = true, completer.complete(true) }else{ completer.complete(false) } } ); Appodeal.setRewardedVideoCallbacks( onRewardedVideoLoaded: (isPrecache) => { ApplicationInsights.instance.trackTrace( severity: Severity.information, message: 'Ad Loaded!', properties: { 'platform': Platform.operatingSystem, } ), isAdInitialized = true }, onRewardedVideoFailedToLoad: () => { ApplicationInsights.instance.trackTrace( severity: Severity.warning, message: 'Ad failed to load!', properties: { 'platform': Platform.operatingSystem, } ), isAdInitialized = false }, ); } return completer.future; } ```
Logs The logs are not useful because they don't show any error. ``` [✓] Flutter (Channel stable, 3.13.2, on macOS 14.0 23A344 darwin-arm64, locale it-IT) • Flutter version 3.13.2 on channel stable at /Users/francesco.vallone/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision ff5b5b5fa6 (7 weeks ago), 2023-08-24 08:12:28 -0500 • Engine revision b20183e040 • Dart version 3.1.0 • DevTools version 2.25.0 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/francesco.vallone/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15A240d • CocoaPods version 1.13.0 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) [✓] IntelliJ IDEA Community Edition (version 2023.2.2) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart [✓] VS Code (version 1.83.0) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.74.0 [✓] Connected device (3 available) • iPhone 15 Pro (mobile) • FA8BD913-2955-4157-9BB1-5BB06EE40CB5 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.98 [✓] Network resources • All expected network resources are available. ```
da2gl commented 11 months ago

Hello @francescovallone.

Please, for faster resolution of the issues, write to us in support in the chat directly in your personal Appodeal account or contact by email support@appodeal.com.

Thank you.

rockcastle commented 11 months ago

Hi, flutter native ads available or not on this version?

Thank you.