IOS Sound problems

Discussion and feedback on Construct 2

Post » Mon Apr 18, 2016 9:00 pm

Message: geekroot can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello everyone,

i have been following this post completly ios-sound-problems-since-ios-9-2_t167412?&hilit=IOS+sound+problems and still having the same bug: audio is not working on IOS but is working in androd .

If someone can tell me step by step what i need to do will be appreciated.

Thanks
B
10
S
2
Posts: 21
Reputation: 594

Post » Tue Apr 19, 2016 12:53 pm

It's not working for me too !
B
4
Posts: 2
Reputation: 204

Post » Wed Apr 20, 2016 3:31 am

aliyahaunjo wrote:It's not working for me too !

if you figure out the way to do it please let me know i will do the same if i do it
B
10
S
2
Posts: 21
Reputation: 594

Post » Wed Apr 20, 2016 12:25 pm

Please make sure you are using the latest stable release r227 - we fixed a bunch of bugs to do with audio already.

If you still have trouble, please file a bug in the Bugs forum following all the guidelines, or it will not be investigated.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Wed Apr 20, 2016 2:50 pm

Ashley wrote:Please make sure you are using the latest stable release r227 - we fixed a bunch of bugs to do with audio already.

If you still have trouble, please file a bug in the Bugs forum following all the guidelines, or it will not be investigated.

Yes i have r227. I will do it.
B
10
S
2
Posts: 21
Reputation: 594

Post » Thu Apr 21, 2016 2:38 pm

Please let me know if the new version of Scirra fixes this iOS sound problem.
B
8
S
1
Posts: 10
Reputation: 643

Post » Fri Jun 24, 2016 7:41 pm

iOS No Sound Workaround!!!

Hello,

Obviously different people can experience the same symptom (iOS Sound not Working) for different reasons. I'm not sure WHY my iOS sound wasn't working, but I did find a work around that worked for me. I built a game that was working great in Android, but when I exported it from Construct 2 (as an XDK file), then wrapped it with XDK as an iOS app I got no sound. I was using the Cordova native audio plugin at first, then tried several others. One by one, I tried every single plugin I could find that mentioned the word audio. Eventually, I tried the Third Party Cordova Background Audio plugin (even though my app doesn't use background audio), annnnnnnd SUCCESS!! All of the sudden my sounds and music were working like a charm! The caveat here is getting it by Apple's review process since my app doesn't need it (background audio). Well, it took a few attempts and rejections before I was able to use it without them rejecting me for it. Here's how to do it in XDK (for building in other tools, adapting this info shouldn't be too difficult).

Step 1) Add the background audio plugin ...
- You can keep the others (like cordova-plugin-nativeaudio) if you want, but this one will work by itself.
- On the Build Page, under Plugins, click the button to add another plugin
- Choose Third Party Plugins
- Paste the following into the top textbox "nl.kingsquare.cordova.background-audio" (without quotes of course!)
- Click Add (Test it!)

Step 2) To get it approved by Apple if your app doesn't use background audio ...
- After adding the plugin goto the 'Develop' tab
- Do a 'Find in files' and search for "UIBack"
- You should get one result, the plugin's .xml file
- Just below "UIBackgroundModes" (about 3/4's of the way down the page) remove the following lines/tags ...
<array>
<string>audio</string>
</array>

-Then save and close the file, that's it. Now you can submit the app to Apple without them rejecting it for "declaring" a feature it doesn't use.

I hope this helps you . . .


P.S. - For those who don't know, background audio is the ability for your app to continue to play sound even when it's in the background (ie: user has hit 'Home' button and/or has gone on to some other app.)
B
11
S
5
G
3
Posts: 8
Reputation: 2,382

Post » Sun Sep 25, 2016 5:30 pm

Ok,

here is what I did :
Before I start, I assume You are using the latest stable version of C2 and Intel XDK.
1) put all the sound and music files in sounds folder (I know thats not pretty:decompressed music file in memory - high memory usage,..., but it worked for me )
2) When exporting from Construct 2 , export with cordova, DO NOT minify script and check all three boxes : hide status bar, use wkwebview and use new intel xdk format
3) in Intel XDK , in lower left corner choose "open intel xdk project". Now all the required plugins will be automatically imported. Add icons, splashscreend, add certificate and provisioning profile.
4) test on REAL device. (note that you must use ad hoc provisioning profile to test on your device, othervise your game will not be installed). Use production provisioning profile only when uploading to AppStore.

Hope this helps

Best Regards,
Matija
B
12
S
3
Posts: 26
Reputation: 821


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests