Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Video Ads isn't paused when the tab isn't active (switched to another tab) on Android #1047

Open
ultraon opened this issue Apr 5, 2024 · 4 comments
Labels
native ad Issues related to Native Ad platform-android Android applications specifically

Comments

@ultraon
Copy link

ultraon commented Apr 5, 2024

[REQUIRED] Step 1: Describe your environment

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 13.6.2 22G320 darwin-arm64, locale en-UA)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Community Edition (version 2023.3.4)
[✓] VS Code (version 1.85.1)
[✓] Connected device (5 available)

Plugin Version

v4.0.0

[REQUIRED] Step 2: Describe the problem

Steps to Reproduce

The problem is simple. And it is 100% reproducible on Android (iOS works well).

Steps to reproduce:

  • Add BottomNavigationBar with a few tabs
  • Integrate Native Template Ads on the 1st tab
  • use the test ad_unit_id: /6499/example/native-video and load the ads, video Ads should be played
  • unmute sound (if it is muted) on the Ads Video frame
  • switch to another tab

Expected: The video Ads playback should be paused, the sound shouldn't be playing.
Actual: The video Ads playback continues playing, and the sound is playing.

On iOS it works properly.

@malandr2
Copy link
Collaborator

malandr2 commented Apr 8, 2024

Hi @ultraon, can you provide a minimum reproducible sample for further debugging. Thanks!

@malandr2 malandr2 added feedback required Further information is requested native ad Issues related to Native Ad labels Apr 8, 2024
@ultraon
Copy link
Author

ultraon commented Apr 10, 2024

Hi @ultraon, can you provide a minimum reproducible sample for further debugging. Thanks!

Hello @malandr2 , I've created a minimum reproducible sample.
This is the repo: https://github.com/ultraon/sample_android_ads_issue
In the repo description (README.md) I added details and how to reproduce.
On iOS it works as expected.
On Android it doesn't.

@github-actions github-actions bot removed the feedback required Further information is requested label Apr 10, 2024
@malandr2
Copy link
Collaborator

Hey @ultraon, I'm able to reproduce this, thanks for creating the sample. I think this is a Flutter issue, even though it only happens on Android. I've escalated this to the Flutter team to confirm it's a google_mobile_ads plugin issue.

@ultraon
Copy link
Author

ultraon commented Apr 19, 2024

Thank you!

@malandr2 malandr2 added the platform-android Android applications specifically label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native ad Issues related to Native Ad platform-android Android applications specifically
Projects
None yet
Development

No branches or pull requests

2 participants