Background Audio Ad playback - Android/iOS

164 views
Skip to first unread message

Denis Sylvester

unread,
Jul 4, 2023, 8:07:49 PM7/4/23
to Interactive Media Ads SDK
Hi IMA Team,

I'm looking for further guidance and support on background audio ads playback for an Android and iOS app.

I've reviewed these guides from Google on background playback (1. Android, 2. iOS) as well as the examples, but I'm not able to get the audio ads to play in the background in between regular audio content. Ads are working as intended when the app is open and in view.

Additional Information
1. For context, the app is built in React and we're using a bridge to enable ads through the IMA SDK (Android and iOS)

2. audio tags (VAST) built through GAM (begins with https://pubads.g.doubleclick.net/gampad/ads)

3. The app is an audio player that only contains audio content. We are implementing audio ads to play during the content.

4. Currently, audio ads are playing when the app is open in the foreground, but stop when the app is minimized or open in the background.

Would you be able to please provide any additional documentation or support to help with this?

Please let me know if you need any technical information from my end or if we need to continue this discussion offline.

Thanks,
Denis

IMA SDK

unread,
Jul 5, 2023, 4:50:16 AM7/5/23
to ima...@googlegroups.com

Hi Denis,

Thank you for raising your concern to our team.

For us to investigate further, kindly provide the following information:

  • For ios, could you confirm if you enabled the Audio and Airplay background mode in Xcode?
  • For Android, could you confirm if you've already compared your implementation with our Audio Player Example?
  • Sample app (for both ios and android) where you encountered the issue
  • VAST tags used
  • Screen recording of the reported behavior
  • Steps to reproduce the issue

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

1. Navigate to https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=IMA+SDK&entry.460850823=5004Q00002mrOhsQAE&entry.80707362=00187168
2. Fill out all fields, and attach your file(s).
3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

Looking forward to your response.
 

This message is in relation to case "ref:_00D1U1174p._5004Q2mrOhs:ref"

Thanks,
 
Google Logo IMA SDK Team


Denis Sylvester

unread,
Jul 7, 2023, 1:55:31 AM7/7/23
to IMA SDK, ima...@googlegroups.com
Hi Team,

I've uploaded screenshots from our implementation code snippets as well as the VAST tags we're using for audio.

We're not able to get the audio ads to load in the background, only foreground.

The app is built in React and as the IMA SDK is in native, we are using React-Native Bridge to get the SDK to work on the app

Here's the SDKs we're using

IOS SDK: GoogleAds-IMA-iOS-SDK (3.19.2)

Android IMA SDK 3.30.1

Android Libraries
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.7'
implementation 'com.google.android.exoplayer:exoplayer-ui:2.18.7'
implementation 'com.google.android.exoplayer:extension-ima:2.18.7'
implementation 'com.google.android.exoplayer:exoplayer-hls:2.18.7'

Please note there's no recording of this issue as it's an audio playback issue and we're not able to produce any logs that show any difference between background and foreground playback. 

Please let me know if you need anything else from my end. Thanks.

Best regards,
Denis

photograph

Denis Sylvester
Solutions Consultant

E de...@publift.com

PUBLIFT

Level 1, Building 5 - The Mill,
41-43 Bourke Rd, Alexandria,
Sydney, NSW 2010, Australia
www.publift.com
facebook icon twitter icon youtube icon linkedin icon instagram icon
Banner


--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/b5d8IPTznzE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ima-sdk/Mac40000000000000000000000000000000000000000000000RXBF7M00Lenj_prTTISF9tGIW8VKpg%40sfdc.net.

IMA SDK

unread,
Jul 7, 2023, 8:16:39 AM7/7/23
to de...@publift.com, ima...@googlegroups.com

Hi Denis,

Please be informed that we cannot comment on your implementation based on the shared link as we do not provide support for any documentations outside of our official IMA Documentation. I believe you can add a comment on the said link if you encounter any issues when using their code/implementation.

Moving forward, you can refer and follow the instructions found on our documentation, sample for ios, such as create an IMAAdsLoader, passing in an IMASettings object with enableBackgroundPlayback set to YES.

For us to have better understanding of your concern, we would be needing a sample app where this issue is reproducible to test the behavior you are reporting. Additionally, the latest iOS SDK version is 3.19.1 and for android, it is currently recommended to use 3.29.0 as the 3.30.1 has been deprecated.



If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files with me by performing the following steps:

Reply all
Reply to author
Forward
0 new messages