howler.js icon indicating copy to clipboard operation
howler.js copied to clipboard

[IG] sounds not working after watching a rewarded video - iOS messenger app

Open danielmar opened this issue 5 years ago • 6 comments

Hi,

Using howler.js 2.1.1 our game no longer has sounds triggering after a rewarded video ad is displayed. This happens on iOS only but not in Android or Desktop (Chrome)

danielmar avatar Apr 16 '19 12:04 danielmar

It happens to my instant game, too.

dhuyenkhtn avatar May 10 '19 08:05 dhuyenkhtn

mine too

armedoctopus avatar May 17 '19 19:05 armedoctopus

I'm new to app developing, but I think I know what's causing this problem. I have an ios app working perfectly with howler, but I changed something and then had the same problem mentioned here. Any video ad that has sound will cause howler to stop working. Here's what I changed that caused this to happen. Apple sent me a warning about using UIWebview. I had a plugin called cordova-plugin-inappbrowser This plugin uses UIWebview. So I figured, I better stop using it. So I switched to a plugin called cordova-plugin-inappbrowser-wkwebview That's the only change I made and that's when the howler problem started. I know nothing about UI and WK but I bet the problem is related to that. Is it possible to "restart" howler after any ad plays? That might help.

cheeseflavoredsnacks avatar Aug 29 '19 20:08 cheeseflavoredsnacks

I've been playing with this for a day now and solved the above problem, but in doing so, I discovered another problem. After the ad plays, I use an event listener to listen for onDismiss. This lets you know when an ad is closed. At that time, I play a silent html5 audio file like this... I have an audio tag in my html <audio id='silent' src='silent.mp3'>< /audio> then onDismiss, I call silent.play() It fixed the problem..... BUT I discovered another problem. All of these video ads that have audio in them, also include a MUTE button. If you click the mute button, then dismiss the ad, all audio is gone and I can't get it back. It's like it somehow is muting howler. I tried things like Howler.muted=false but no luck. Any ideas?

cheeseflavoredsnacks avatar Sep 01 '19 00:09 cheeseflavoredsnacks

I am also facing the same issue with the Facebook Instant Game I am working on currently. Is there any workaround for this?

EDIT: The platform is iOS

Plaban9 avatar Jun 30 '22 10:06 Plaban9

Having the same issue, the app randomly and often goes completely mute after switching.

j4hangir avatar Aug 30 '23 22:08 j4hangir