- Home /
Blocking phone calls during game play
Hello,
Is there is a way to block phone calls at some point of the game? And is it allowed by Google/Apple?
Thanks
Answer by tanoshimi · Jul 17, 2015 at 02:57 PM
It sounds like a pretty terrible idea (this is a phone after all), but it should be possible by using a native plugin to enable aeroplane mode. In Android, that would be something like this:
Settings.System.putInt(getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1
http://developer.android.com/reference/android/provider/Settings.Global.html#AIRPLANE_MODE_ON
I know that it sounds terrible, but my customers requested this feature. We released a multiplayer game and they didn't like that they could lose because of a phone call.
Thank you but your solution won't work with us since we need internet connection
Your answer
![](https://koobas.hobune.stream/wayback/20220611231732im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to get phone number or sim detail in ios android 1 Answer
Phone Rescaling GUI 1 Answer
Detect RAM usage of program 0 Answers
iOs/Android Development 2 Answers
using Address book contacts in unity 1 Answer