Sound problem in iOS with WKWebView

Bugs will be moved here once resolved.

Post » Mon May 16, 2016 11:36 am

Problem Description
When I export my game with WKWebView, I don't hear any sound until I leave the game and then focus on it back. After I'm back in focus on my game all the sounds work well. But if I don't use WKWebView I can hear the sounds right when my game starts! (I'd prefer to use WKWebView because of difference in performance)

Attach a Capx
https://drive.google.com/open?id=0ByR2TXt1oVtHeEdoUmh6WnhyZ1k

Description of Capx
Logic game for kids

Steps to Reproduce Bug
  • Export the game with WKWebView plugin for iOS
  • Build the game for iOS with WKWebView plugin
  • Run the game on iOS
  • Wait for the game loaded and see the blue sky, buttons, Flying Parrots logo
  • Pay attention, there's no sound
  • Press on the iOS "Home" button
  • Go back to the Flying Patterns game
  • Hear the music

Observed Result
Music plays just after the game is back to focus

Expected Result
Music plays from the moment that game is loaded

Operating System and Service Pack
Intel XDK 3240 with CLI 4.5.1 and Cordova WKWebView Engine 1.0.2
iOS

Construct 2 Version ID
C 277
Last edited by olkina on Tue May 17, 2016 9:04 am, edited 1 time in total.
B
10
S
2
Posts: 71
Reputation: 696

Post » Tue May 17, 2016 8:37 am

I've added the public .capx to the bug description https://drive.google.com/open?id=0ByR2T ... mh6WnhyZ1k
B
10
S
2
Posts: 71
Reputation: 696

Post » Fri May 20, 2016 6:33 am

Hi I have issue same as you, I think this is a bug for sure.

When game load didn't hear sound till user click activity relate sound it will be back.

Please fix it.

I use...
C227 + XDK 3357


Note : No issue for android in the same project.
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Sun May 22, 2016 5:03 am

@zeroflag it's just about WKWebView.
B
10
S
2
Posts: 71
Reputation: 696

Post » Sun May 22, 2016 6:00 am

olkina wrote:@zeroflag it's just about WKWebView.



So we should uncheck wkwebview when export ?

And on intelXDK wkwebview plugin should be install or not ?
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Sun May 22, 2016 7:00 am

Yes, if you remove cordova wkwebview plugin from your IntelXDK project and then build your it - you have will have no problem with sound
B
10
S
2
Posts: 71
Reputation: 696

Post » Sun May 22, 2016 7:20 am

olkina wrote:Yes, if you remove cordova wkwebview plugin from your IntelXDK project and then build your it - you have will have no problem with sound



So the issue is Intelxdk should uninstall wkwebview ? And Can i export via check wkwebview on C2 normally ? or Uninstall both c2 and xdk ?
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Mon May 23, 2016 2:49 pm

Thanks for the report, this should be fixed in the next beta. Note however it appears to work the same as Safari, where audio is muted until the first touch.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Post » Wed May 25, 2016 3:14 pm

@Ashely

I just try R229 this issue still not fix yet. When I preview on intelxdk the sound is work in beginning but...when run on test flight ios still silent till start touch on screen. Please check it again.
Last edited by zeroflag on Wed May 25, 2016 5:25 pm, edited 1 time in total.
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Wed May 25, 2016 3:18 pm

@zeroflag - please file a new bug report. I verified the .capx in this submission worked in r229.
Scirra Founder
B
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests