How to find MAC address in iOS 7 and above programmatically? [duplicate] - ios

This question already has answers here:
How to get iOS device MAC address programmatically
(6 answers)
Closed 5 years ago.
I am working on a network security based ios app. I need to find the device's MAC address which is used to register the device at router level. Once registration is complete then the router allows the network traffic coming from that MAC address to pass through.
Now, the problem is, in ios 7 or later we can't get the device mac address, as per the following post:
stackoverflow:Mac address is unavailable from ios 7 and up.
Can anyone suggest me any alternative way to find MAC address in ios using C or Objective-C or using any other way.
EDIT:
I know that this question has been asked and answered but I am looking for any alternative way by which we can do this.

You can't anymore due to a change in Apple's privacy controls.

Related

Is there any way to completely turn off an ios device programmatically in xcode? [duplicate]

This question already has an answer here:
How to power iOS device off [duplicate]
(1 answer)
Closed 7 years ago.
I want to make an application that would turn off an iphone at a set time every night;
Absolutely not! (Unless we are talking about a jailbroken app.)
Apple has a very strict sandboxing approach for third party apps. To access the system, you have to use the provided iOS APIs and none of them offers this kind of control.

connect to a specific wifi programmatically in ios with a given SSID and Password [duplicate]

This question already has answers here:
How to programmatically connect to a WiFi network given the SSID and password
(9 answers)
Closed 5 years ago.
is it possible to make an application connect to a wifi spot in ios, provided that the app knows the Name/SSID and password.
Contrary to what you see here and other places, you can do it. But it's not pretty. It's an enterprise admin thing, but anyone can do it. Look up "Connection Profiles." Comcast does this in their iOS app to setup their hotspots for you, for example.
Basically, it's an XML document that you get the device to ingest via Safari or Mail. There's a lot of tricks to it and the user experience isn't great, but I can confirm that it works in iOS 10 and it doesn't require jailbreaking. You use Configurator to generate the XML, and I suggest this thread for serving it, and this blog for querying if it's installed.
If you are not going to submit the app to the Appstore, then yes, you can do that.
You'll need a jailbroken device.
here are the details:
Where do I find iOS Obj-C code to scan and connect to wifi (private API)

Auto connect wifi network iOS [duplicate]

This question already has answers here:
How to switch between wi-fi networks at runtime (programmatically) in iPhone app
(3 answers)
Closed 9 years ago.
i want to make an app which read a QR code that contains the information of the wifi network, with this data i want to connect automatically to the wifi. I have read something about CaptiveNetwork but i can't find anything.
I want to know if that is posible to do in iOS? if it can how?
Thaks
The API used to switch networks or connect to a new one is currently private.
If you plan to use the app on a jailbroken device check this out:
https://github.com/devinshively/wifiAssociate
iOS apps are sandboxed, and as such various functionality is unavailable to the app. Apple has no APIs for doing this within an app, because they don't want an app to be able to make changes to things like this and other system settings.
You have a couple possible options:
Display the wifi network information from the QR code and instruct the user how to go to the settings app and put it in.
Release your app for jailbreak devices in the Cydia app store, because once the device is jailbroken you can do stuff outside of your sandbox.
Generally, when Apple doesn't want you to do something on iOS, you have little choice but to accept that.

How to make IOS apps on windows? [duplicate]

This question already has answers here:
How can I develop for iPhone using a Windows development machine?
(42 answers)
Developing iOS app on Windows [closed]
(2 answers)
Closed 9 years ago.
I don't know if this is the correct forum to post this on but I'll just do it. I want to make IOS apps on windows. I know that I could install a VM but my processor is not compatible with OSX. This is a pretty simple question that may have a complex answer. Thanks in advance.
No, Apple don't make this very easy at all. They actually want you to buy a Mac.
The development software they use for iOS development doesn't run on non-Mac boxes. You may be able to get it running technically (such as on a Hackintosh) but you'll be violating the OSX licence agreement.

Develop iOS Apps without a Mac [duplicate]

This question already has answers here:
Develop iPhone app without a Mac? [duplicate]
(10 answers)
Closed 9 years ago.
I want to create a mobile application for iPhone in Objective-C. The app should be equipped with a graphical user interface.
The problem is that I don't have a Mac computer so I have no access to the Xcode environment.
Is there any possibility to build my project with an online service (for example on a virtual server, remote control etc.) or can I use tools completely under Windows?
VirtualMacOSX.com have an offer for xCode development, from (as of now) $10 a month.
I am sure others have too.
Although not optimal you can run mac osx on vmware (on your windows machine), then install xcode on that. I did this for a while until I decided to bite the bullet and I bought a mac
Unfortunately there is no good way to do it, anyway you will need access to Mac computer (remote or physical, no difference).

Resources