Get local network hostnames in iOS - ios

I would like to get All device name in entire local network. I just been searching over 2 days and haven't find a solution yet.
I can able to get Bonjour services with using NSNetServiceBrowser. What i am trying to do is same as Fing app ( in app store) does.
As screenshot below, I would like to get "My iPhone" iPhone name with iOS.
Regards
Onder

Seems like NEHotspotHelper is what you're looking for. Specifically a class func supportedNetworkInterfaces() -> [Any] method.
In order to make it work, you'll need to accomplish some additional steps. Please, check this question to get more information.
Also don't forget to add NetworkExtension.framework to your target.

Related

What sections of Apple Health app are available via the x-apple-health:// URL scheme?

I want let users view the Weight section of Apple's Health app to allow them to see detailed data, etc. I manage to open the Health app via the URL scheme x-apple-health://, but I would like to send them directly to the right place, e.g. x-apple-health://HealthData/measurements/Weight. I have had no success after trying different paths that made some sense.
Anyone has a reference on this?
Apple has not documented the x-apple-health:// scheme for use by apps. Attempting to use it is like using SPI - even if you find something that works now, it is likely to break in a future version of iOS. You should file a Radar with Apple to request an API for this purpose.

How to get all app list and data usage of that app in swift?

Request:Please do not mark it as duplicate because i gone through many questions.
I want to create app in which i want all app from my iPhone / iPad with its data usage. I get an idea for that i need VPN but i don't know how to implement it in app. I gone through many question and answer but i don't get satisfied answer. So how could i achieve this problems solution?
i gone through this question but i am not fully satisfied
You can't get list of all apps installed on your iPhone/iPad, if device is not jailbreaked.
In question your mentioned VPN was used to get info about apps that used network connection.
However event if you will implement it, you will not be able to see apps that not use network

Get list of all wifi available in ios

I have check all possible solutions to get list of all available Wifi's but nothing works for me.
I even try NEHotspotConfigurationManager API but it connect to wifi with predefined SSID. In my case I need to get the list only.
Do we need entitlement document for NEHotspotNetwork?
This is not still possible in iOS. It doesn't look like there's a way to retrieve a list of currently available SSIDs, without using private APIs which would result in rejection from App Store submission of your app.

get wifi's scanned SSID list in iOS using Swift

I'd like to know if it is possible with swift to get a list scanned WIFI SSID from the iPhone ,( using APIs like MobileWiFi.framework or something else ) and see code examples about that (without Objective-C source code )
It is only possible to get the SSID of the network that you are currently connected to.
It is officially not possible with any language (objective-c and swift). You can look at the answer given by an official apple stuff in the following url.
https://forums.developer.apple.com/thread/13157
where the apple stuff says :
It's not possible to do this in any general way.
Also, you can take a look at the answer given by the same apple stuff in the following link :
https://forums.developer.apple.com/message/138998#138998
where he/she also says :
NEHotspotHelper was not designed as a general purpose ‘list nearby Wi-Fi networks’ API.
You can only get your current SSID.

How to fetch the list of near by wifi networks and able to connect to them from our App in ios (Using private API for enterprise App)?

I want to fetch the list of near by wifi networks and able to connect to them from our App in ios, and my Application is Enterprise App so even private api's is also fine. Stuck this issue since 2 weeks, please provide me some references..
What you require will only work on JailBroken devices, the blog(blog.guvenergokce.com/iphone-wireless-scanner-ios5/170) which #Ckouta referred also has one comment from the Blog Admin,
I’m assuming that your device is already jailbroken (otherwise not possible)
You shall create release build of sample app and upload release build in to /Applications folder.
(you can use open ssh for that )
Public API allows you to have only information about the current wifi used by your device using CNCopyCurrentNetworkInfo
In order to fetch all the wifi available in your area, take a look at: Stumbler which is using MobileApple80211. I think, it handles what you are looking for. Moreover, you can also use it to connect your device to a specific wifi. You can find a good example of what you need here (answer #9)
Just keep in mind, if you are using private API, your app will be rejected by Apple.
Although it's late but have a look at this link. You can do what you want with the use of MobileWifi.framework and thanks to Cykey there are some reversed headers to use. I have done what you want myself using the link above:)

Resources