flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.93k stars 27.17k forks source link

Google Ad Manager - Implementing voice ads functionality using IMA SDK causes problems with background playback in iOS apps #154224

Closed ayumic-c closed 6 days ago

ayumic-c commented 2 weeks ago

Steps to reproduce

I am currently using Google Ad Manager - IMA SDK Ver. 3.22.1 to implement the audio ads feature in my radio app, but the iOS app is experiencing the following issues when playing ads in the background.

  1. Play an episode in the foreground.
  2. Then transition to background.
  3. Tap “>>” from the Control Center.
  4. Then, an advertisement is played.
  5. After the ad ends, the next episode does not play.

Expected results

I would like to be able to play the next episode after the ad plays in the background.

Actual results

As described in step 5, the next episode does not play after the ad ends in the background.

Code sample

N/A

Screenshots or Video

https://github.com/user-attachments/assets/334d2dbe-f666-4e67-950c-d8c758d25c37

Logs

gera_ios_backgroundBugs.csv

Flutter Doctor output

N/A

danagbemava-nc commented 2 weeks ago

Hi @ayumic-c, are you using the https://pub.dev/packages/interactive_media_ads plugin? If so, it doesn't seem like background audio ads are supported yet, see the note section in the readme.

Can you also provide a complete minimal reproducible code sample so that we can properly investigate this?

ayumic-c commented 6 days ago

Hi, @danagbemava-nc No, we are not using that plugin.

And, unfortunately I can’t provide a complete minimal reproducible code sample because of our program is very complicated. Do you have any solutions without the code?

danagbemava-nc commented 6 days ago

Unfortunately, without a code sample we can't tell what's wrong and how to solve it. Also, if you're not using the plugin maintained by the flutter team but your own custom implementation, you may want to try with a native iOS sample to see if you get the same behavior, in which case you may want to report it to the library maintainers but if you're using another plugin, you may want to report this to the plugin maintainers.

Given that you're not using the plugin maintained by the flutter team, there's no further action for us to take here. Closing from here.

Thank you