Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

App Open not working #68

Closed
sumitgohil opened this issue May 29, 2021 · 13 comments
Closed

App Open not working #68

sumitgohil opened this issue May 29, 2021 · 13 comments
Labels
invalid This doesn't seem right

Comments

@sumitgohil
Copy link

sumitgohil commented May 29, 2021

App open ad is not working with test and real id.
The error shows App open ad Timeout.

I tried with the example code in the repo, but facing the same problem.

@bdlukaa bdlukaa added the bug Something isn't working label May 29, 2021
@waiyan112
Copy link

Me too, I am also hoping fixed!

@tushar0518
Copy link

tushar0518 commented Jun 1, 2021

App open ad is not working with test and real id.
The error shows App open ad Timeout.

I tried with the example code in the repo, but facing the same problem.

 AppOpenAd appOpenAd = AppOpenAd();

  void showappopenad() async {
    print("starting");
    if (!appOpenAd.isAvailable) {
      await appOpenAd.load(
        unitId: "ca-app-pub-3940256099942544/5662855259",
        orientation: AppOpenAd.ORIENTATION_PORTRAIT,
      );
    }
    appOpenAd.onEvent.listen((e) {
      final event = e.keys.first;
      switch (event) {
        case FullScreenAdEvent.loading:
          print('loading');
          break;
        case FullScreenAdEvent.loadFailed:
          print('load failed');
          break;
        case FullScreenAdEvent.loaded:
          print("loading done");
          break;
        case FullScreenAdEvent.showed:
          print('ad showed');
          break;
        case FullScreenAdEvent.showFailed:
          print('show failed');
          break;
        case FullScreenAdEvent.closed:
          break;
        default:
          break;
      }
    });
    if (appOpenAd.isAvailable) {
      await appOpenAd.show();
    }
  }

Try my code hope your task will be done :)

@tushar0518
Copy link

Me too, I am also hoping fixed!

mine is working perfectly

@bdlukaa
Copy link
Owner

bdlukaa commented Jun 1, 2021

Sorry, but it's working for me (Android). Please ensure you followed all the steps on the documentation.

Any other logs and info would be good to help you solving your issue.

@bdlukaa bdlukaa added invalid This doesn't seem right and removed bug Something isn't working labels Jun 1, 2021
@oliverbytes
Copy link

oliverbytes commented Jul 26, 2021

App Open Ads doesn't work in conjunction with google_mobile_ads package. Simply adding google_mobile_ads: 0.13.2 in the pubspec.yaml will cause App Open Ads to not work and fail. Tried on example app. See error below

I/flutter (11106): {FullScreenAdEvent.loading: null}
D/DynamitePackage(11106): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/Ads     (11106): This request is sent from a test device.
I/AudioManager(11106): In isSpeakerphoneOn(), calling application: com.example.native_admob_flutter_example
W/Ads     (11106): Not retrying to fetch app settings
2
E/sqlite3_android(11106): ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
I/DynamiteModule(11106): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:212104400
I/DynamiteModule(11106): Selected remote version of com.google.android.gms.ads.dynamite, version >= 212104400
I/Ads     (11106): This request is sent from a test device.
I/AudioManager(11106): In isSpeakerphoneOn(), calling application: com.example.native_admob_flutter_example
2
E/sqlite3_android(11106): ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
I/DynamiteModule(11106): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:212104400
I/DynamiteModule(11106): Selected remote version of com.google.android.gms.ads.dynamite, version >= 212104400
V/InputMethodManager(11106): b/117267690: Failed to get fallback IMM with expected displayId=73 actual IMM#displayId=0 view=com.google.android.gms.ads.internal.webview.ac{bf25ebf VFEDHVC.. ........ 0,0-1080,168}
W/Ads     (11106): #004 The webview is destroyed. Ignoring action.
I/chatty  (11106): uid=10001(com.example.native_admob_flutter_example) identical 1 line
W/Ads     (11106): #004 The webview is destroyed. Ignoring action.
2
E/sqlite3_android(11106): ONEPLUS_NAME_PARTS_MATCH SQLITE_OK
I/flutter (11106): {FullScreenAdEvent.loadFailed: #-1: Timeout achieved}

Patiently waiting for a fix for this amazing and super helpful package!

@oliverbytes
Copy link

I've narrowed down the issue. starting google_mobile_ads: 0.13.0 and up is what's causing the App Open Ads to fail to load.

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 26, 2021

I guess the admob dependency needs to be the same version on both packages. Currently, the admob version used on this package is 19.8.0, the admob version used by google_mobile_ads is 20.1.0, and the latest admob version is 20.2.0. @nemoryoliver

@oliverbytes
Copy link

oliverbytes commented Jul 26, 2021

I guess the admob dependency needs to be the same version on both packages. Currently, the admob version used on this package is 19.8.0, the admob version used by google_mobile_ads is 20.1.0, and the latest admob version is 20.2.0. @nemoryoliver

Currently experimenting with it. Let me know if you have a solution bro! Thanks a lot for your great work

updated to com.google.android.gms:play-services-ads:20.2.0 and causing below errors

e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/app_open/Controller.kt: (31, 39): Too many arguments for public abstract fun show(p0: Activity!): Unit defined in com.google.android.gms.ads.appopen.AppOpenAd
e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/app_open/Controller.kt: (48, 21): 'onAppOpenAdLoaded' overrides nothing
e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/app_open/Controller.kt: (54, 21): 'onAppOpenAdFailedToLoad' overrides nothing
e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/banner/BannerAd.kt: (54, 13): 'onAdLeftApplication' overrides nothing
e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/native/Controller.kt: (107, 21): 'onAdLeftApplication' overrides nothing
e: /Users/nemoryoliver/Desktop/Projects/Flutter/others/native_admob_flutter/android/src/main/kotlin/com/bruno/native_admob_flutter/rewarded/Controller.kt: (54, 21): 'onRewardedAdFailedToLoad' overrides nothing

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 26, 2021

I/flutter (11106): {FullScreenAdEvent.loadFailed: #-1: Timeout achieved}

Can you try to increase the timeout time? @nemoryoliver

@oliverbytes
Copy link

oliverbytes commented Jul 26, 2021

I/flutter (11106): {FullScreenAdEvent.loadFailed: #-1: Timeout achieved}

Can you try to increase the timeout time? @nemoryoliver

Tried 60 seconds as well as 5 minutes and still fails

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 27, 2021

@nemoryoliver published a new version (1.5.0). Can you try it?

@oliverbytes
Copy link

@nemoryoliver published a new version (1.5.0). Can you try it?

Absolutely fixed!!! Buying you another coffee bro! Super appreciate it!

@bdlukaa
Copy link
Owner

bdlukaa commented Aug 27, 2021

This issue is not an issue with the project. Please open a new issue if you think so

@bdlukaa bdlukaa closed this as completed Aug 27, 2021
Repository owner locked as resolved and limited conversation to collaborators Aug 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

5 participants