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
18 stars 3 forks source link

Appodeal.initialize does not work on some Android devices #48

Closed stoppimyse closed 7 months ago

stoppimyse commented 9 months ago

Hi, I have an Android device Huawei P20 Pro version EMUI 12. Trying to initialize the SDK the program freezes without giving any type of error and the GDPR form not appear. I assume it gets stuck when it has to show the GDPR form. testing on other newer devices, both Android and iOS, the problem does not occur. This is my configuration

  Appodeal.initialize(
    appKey: Platform.isAndroid ? "xxxx" : "xxxx",
    adTypes: [
      AppodealAdType.RewardedVideo,
    ],
    onInitializationFinished: (errors) async => {
          print(errors),
        });
Logs ``` [✓] Flutter (Channel stable, 3.13.5, on macOS 14.0 23A344 darwin-arm64, locale it-IT) • Flutter version 3.13.5 on channel stable at /Users/stefanotoppi/Documents/Flutter Core/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 12fccda598 (3 weeks ago), 2023-09-19 13:56:11 -0700 • Engine revision bd986c5ed2 • Dart version 3.1.2 • DevTools version 2.25.0 [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/stefanotoppi/Library/Android/sdk • Platform android-33, build-tools 33.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.12.1 [✓] 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) [✓] VS Code (version 1.82.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.74.0 [✓] Connected device (3 available) • iPhone di Stefano (mobile) • 00008130-000965162861401C • ios • iOS 17.0.3 21A360 • macOS (desktop) • macos • darwin-arm64 • macOS 14.0 23A344 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.149 ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources • All expected network resources are available. • No issues found! ```
da2gl commented 8 months ago

Hello @stoppimyse. Can you enable logs using the Appodeal.setLogLevel(Appodeal.LogLevelVerbose); method and send the logs with the Appodeal tag. Also you can send us your build for test.

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

Thank you.

da2gl commented 7 months ago

Hello @stoppimyse. If you still have a problem, you can create a new issue or comment here.