Is it possible to switch from silent mode to ring mode (and vice versa) on an iPhone
programatically?
Its against the Human Interface Guidelines according to Apple, so it shouldn't be done, and apps may get rejected for doing it.
Related
I am studying about coding and I got a question to control airplane mode in iphone programmatically
For android phone, we can use usb connection and adb to send unix command to control airplane mode.
Is there any possibility to control airplane mode by unix command and lighting cable connection?
I was checking
ios: turn on/off airplane mode from code for iPhone / iPad
How to check Airplane mode in background in iPhone?
but i am not clearly sure if it is possible...
No, you just can't do that.
An app has to adopt to the current network state, not control it.
You would need to access the private API and this would mean, you can't upload the app to the App Store because it is not allowed to use the private API in productive mode.
on iOS devices, is there a way to programmatically disable the browser message "Turn Off Airplane Mode or Use Wi-Fi to Access Data" when my app is intentionnaly on Airplane Mode and works already properly offline?
Many thanks!
I'm looking for a way to detect the buttons pressed of external music control buttons, I have integrated in my car via bluetooth. Is it possible to make use of them in my App for something else that playing and stoping music?
Thanks a lot!
Markus
Those controls are probably talking to your iPhone using the remote control lingo, part of iAP (iPod Accessory Protocol). For documentation on this, you need to join Apple's MFi program, which is a separate account to a normal developer account and quite a bit more difficult to get approved for.
I'm not certain whether it's possible to get your application to talk to those devices, as you need to specifically enable application communication on the device itself and there's an authentication scheme you need to handle.
I am working on an appliction that requires bluetooth connectivity, which i use GameKit for data transfer, however im seeing that when i go in background mode, or I just turn off the screen in app, the bluetooth connection is dropped... Ive seen other apps that keep the connection alive in such situations, anyone have any idea if I am missing something that wont cause the connection to drop on such cases? Have been looking around but havent found anything useful...
Thanks
Daniel
This is not intentionally supported by Apple.
If you are writing this for an application that doesn't have to be distributed through the App Store, you can set the application up to play a silent audio file in the background. This will allow GameKit to continue to work even when your application has been put into the background or if the screen has locked.
If this application has to be distributed through the App Store, Apple require the audio to be a real feature, with audible music playing.
If you have two devices connected using GKSession and then one of them is interrupted by call or goes into background, when it wakes up connection should be still alive (you should be able to send/receive packets between devices).
You may try setting
UIRequiresPersistentWiFi
in your plist.
can we change iphone profiles from silent to ring with iphone sdk?for eg.if the iphone is in silent mode and if some person calls the user more than 4 times then the iphone mode will change to ringing mode ............i know that there are no api for this but can all ou give some other legal alternatives ,
There is no access to incoming phone calls or any phone call history from an app on an iPhone running a stock OS.