Lately we have been working on the iOS port of Skyro and it’s going pretty smoothly. It was amazing to have the exact same code from the Android version running on the iPhone within 2 hours. I’ll cover more on the porting process in another post.
So far there have been very few issues moving from Android to iOS. Most of the work is dealing with different screen resolutions until I came across a small sound issue. The in game sound controls work perfectly and the iPhone’s volume buttons work as expected. What doesn’t work is the phone ‘mute’ or ‘silence’ functionality.
As I understand, the mute switch on the iPhone is used to silence all system notifications such as ring tones, message sounds and other system alerts. However, most phone users have come to expect that same mute switch to silence the sounds made by applications too. With AIR, this doesn’t work. The mute switch has no effect on the game sound (at least with the version 3.2 of AIR I’m using).
I proceeded to do quick search and it seemed like Native Extensions for Adobe AIR was the answer, and someone had already created the extension for this exact mute functionality (http://www.enriquedavid.es/adobe-native-extensions-ios-mute-button.html). Sweet.
After hours of trying to include the .swc and .ane files in every which way, I could not get this thing to work. Everything I tried came up with some sort of error. 10 hours in and I finally got it working so I wanted to document how I got it running so I can save other people the same issues. Continue reading →