Code Monkey home page Code Monkey logo

Comments (9)

SleepyMrPanda avatar SleepyMrPanda commented on September 4, 2024 1

@vegidio It's working for me.

from flutter-appodeal.

 avatar commented on September 4, 2024 1

@vegidio It is working fine now. Thanks for your time.

from flutter-appodeal.

vegidio avatar vegidio commented on September 4, 2024

Thanks for reporting it. Can you share a piece of code that recreates this bug?

from flutter-appodeal.

 avatar commented on September 4, 2024

This is my entry point in main.dart file and this is how I initialize Appodeal.

`Future mainDelegate() async {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent, // status bar color
statusBarBrightness: Brightness.dark, //status bar brigtness
statusBarIconBrightness: Brightness.dark, //status barIcon Brightness
systemNavigationBarIconBrightness: Brightness.dark, //navigation bar icon
));
Appodeal.setAppKeys(
androidAppKey: 'android_api_key',
iosAppKey: 'ios_api_key',
);

//Crashes here while initialization
await Appodeal.initialize(
hasConsent: true,
adTypes: [AdType.BANNER, AdType.INTERSTITIAL, AdType.REWARD, AdType.NON_SKIPPABLE],
testMode: true,
verbose: true);

runApp(MyApp());
}`

To debug more, I edited the Appodel library directly and commented out _setCallbacks() function, and removed calling _setCallbacks() function inside initialize() method. Then it worked as expected.

as Future Function(MethodCall)?); - This particular piece of code is added in the latest version at _setCallbacks() method.

I tried out the example project provided in the library. It works fine because it is using version 0.6.0.

from flutter-appodeal.

vegidio avatar vegidio commented on September 4, 2024

Thanks, I will investigate this later today.

Just curious, why do you think the example project is using version 0.6.0? It actually imports the library directly from the /lib folder.

from flutter-appodeal.

 avatar commented on September 4, 2024

as Future Function(MethodCall)?); - I couldn't find this piece of code at _setCallbacks() method in the example project and checked pubspec.yaml, it shows the library version is 0.6.0. So I guessed it is using the older version of the library. Correct me if I'm wrong.

from flutter-appodeal.

SleepyMrPanda avatar SleepyMrPanda commented on September 4, 2024

Hello,
Are there any updates? I have a same issue in 1.0.0.

from flutter-appodeal.

vegidio avatar vegidio commented on September 4, 2024

@senthamizhraj @SleepyMrPanda Please update your pubspec.yaml file and import appodeal_flutter directly from the bugfix branch that I created (see below). Let me know if the version in this branch fixed the error and I will merge it in case it's working.

appodeal_flutter:
  git:
    url: https://github.com/vegidio-flutter/appodeal.git
    ref: bugfix/set-callback

Thanks.

from flutter-appodeal.

vegidio avatar vegidio commented on September 4, 2024

Fixed in version 1.0.1

from flutter-appodeal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.