howler.js
howler.js copied to clipboard
[IG] sounds not working after watching a rewarded video - iOS messenger app
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)
It happens to my instant game, too.
mine too
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.
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?
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
Having the same issue, the app randomly and often goes completely mute after switching.