Developer Resources
The Solebon developer team will use this page to share coding tricks with other developers. These tricks are provided without any claim of ownership or authorship (someone else may have already figured these tricks out). However, providing these tricks does not imply that we are also providing any type of license to the assets and property of Solebon LLC including the Solebon Apps, contents of this website and all related images and trademarks.
Trick #1 - Disabling Bluetooth at the App Level
The Problem: When we introduced sound effects in to a recent set of releases, one of our valued players alerted us to a situation where users with active bluetooth devices were hearing the game sounds via those devices. When our players clicked a mute button within the app, this turned off the sound effects but not the actual sound engine which resulted in the bluetooth device remaining active. Our players could hear periodic crackling or popping sounds (typical background noise with bluetooth). It was pretty annoying when we tested on a couple of devices (headsets, speakers, etc). For this player, the device was a hearing aid which made the situation extremely unpleasant.
The Solution: We couldn't find a way to simply turn the bluetooth functionality off at the app level but we did develop a trick that works. The key was to build a switch within the app that controls the initialization of the sound engine before the app launches. In our Solebon Apps, our players can simply open the app, mute the sound and exit the app. Once they hear the bluetooth drop they can go back into the app without activating the bluetooth. We could have put in a separate switch but we decided to incorporate this functionality into the existing mute button. Try this for yourself with our free Solitaire iPhone app. Let us know if you have another approach to solving this.
The Solebon developer team will use this page to share coding tricks with other developers. These tricks are provided without any claim of ownership or authorship (someone else may have already figured these tricks out). However, providing these tricks does not imply that we are also providing any type of license to the assets and property of Solebon LLC including the Solebon Apps, contents of this website and all related images and trademarks.
Trick #1 - Disabling Bluetooth at the App Level
The Problem: When we introduced sound effects in to a recent set of releases, one of our valued players alerted us to a situation where users with active bluetooth devices were hearing the game sounds via those devices. When our players clicked a mute button within the app, this turned off the sound effects but not the actual sound engine which resulted in the bluetooth device remaining active. Our players could hear periodic crackling or popping sounds (typical background noise with bluetooth). It was pretty annoying when we tested on a couple of devices (headsets, speakers, etc). For this player, the device was a hearing aid which made the situation extremely unpleasant.
The Solution: We couldn't find a way to simply turn the bluetooth functionality off at the app level but we did develop a trick that works. The key was to build a switch within the app that controls the initialization of the sound engine before the app launches. In our Solebon Apps, our players can simply open the app, mute the sound and exit the app. Once they hear the bluetooth drop they can go back into the app without activating the bluetooth. We could have put in a separate switch but we decided to incorporate this functionality into the existing mute button. Try this for yourself with our free Solitaire iPhone app. Let us know if you have another approach to solving this.