is there possible to programatically disable wifi auto join option in iPhone?
any help will be appreciated. thanks in advance
Short Answer: No.
Longer: This would violate the general idea of a sandbox if a process within the sandbox changes the system outside.
Think the other way around: You can check the SCNetworkReachability flags about the current connection and respond within your app.
Related
I'm hoping someone can answer a few questions I have, since Apple's documentation does not provide an answer. I'm simply just wanting to connect to a Wi-Fi and disconnect from my app using these methods from the NEHotspotConfigurationManager:
-applyConfiguration:
-removeConfigurationForSSID:
-getConfiguredSSIDsWithCompletionHandler:
-fetchCurrentWithCompletionHandler:
From this documentation, nothing mentions needing a special entitlement :https://developer.apple.com/documentation/networkextension/wi-fi_configuration?language=objc
-Can someone please tell me if I need one for using just those methods above?
-What 'Capabilities' do I need to add in Xcode for those items above and to add to my profile? Right now I have 'Access Wi-Fi Information' and 'Hotspot' but I'm unsure if I need Hotspot, since I'm not creating a VPN or my own hotspot, I'm just connecting to a specific Wi-Fi from the app. Half of the comments here say conflicting thing.
This article mentions the Capability
'Network Extension' but not sure if needed? NEHotspotConfiguration is not working in ios 11
I am only using this auto-connect feature so users do not have to go to settings to connect to a specific wifi to retrieve information and then bounce to settings again to disconnect in order to submit the information if that makes sense, just a smoother process.
Thank you!
After several responses from here, completely removing all Capabilities and manually adding them back in, and updating to the latest Xcode (13.3 from 13.2) the issue seems to be resolved. Accessing Wi-Fi and Hotspot Configuration do not need a special Entitlement requested from Apple, just a generic one directly in the app. Thank you!
I need to manage (turn on/off) a ikev2 vpn that was already configured(with certificate) manually on iOS. I need to do that in Swift. Any ideas ?
Thanks
There is a method which you can use to start your vpn.
NEVPNManager.sharedManager().startVPNTunnel()
I am trying to create an IOS app in which you assess the settings of the phone and in my case I need to access the mute setting in settings. Can someone please help me figure this out? Mainly i just want to know if you can and how to access the setting of an IOS deviceI do not have any source code yet but I will try to get some up once I get an answer or some help. Thank you
Pretty sure that is not allowed due to sandboxing restrictions.
You cannot accessing the Settings App from your own App, you can however adjust the system volume from an App if that is all you want to do.
Check out MPVolumeView.
https://developer.apple.com/LIBRARY/ios/documentation/MediaPlayer/Reference/MPVolumeView_Class/index.html#//apple_ref/occ/cl/MPVolumeView
What you are specifically writing about is not possible but you will probably find something that answers your use case in this SO question:
How to programmatically sense the iPhone mute switch?
No way to do this easily. If you want to do what you want in a one line way, take a look at this class : http://hoishing.wordpress.com/2014/05/08/mute-checking-in-ios7/
I have to set some blackberry device settings by coding.
Like.
1. Activate call waiting.
2. Enable wifi.
3. Enable GPS.
Can somebody help me. hope my question is clear
// call
Radio.activateWAFs(RadioInfo.WAF_WLAN);
Is it possible to control the native Clock app from my app?
Is it for instance possible to start its timer, or disable and enable an alarm? I want my app to start up, do a modification, and then die.
If it's possible, where do I find more info about this?
This will be my first app. Thanks in advance!
Im pretty sure it isn't doable within public APIs, and i would be very surprised if it was doable at all. What are you trying to do?