How to request/check iOS local network permission in Xamarin - ios

I am implementing an APP with WiFi connection function.
Due to wifi connection API. My APP need "Local network" permission.
Is there any method to check/request this permission in Xamarin platform?
Thank you!

Related

SSH connection to Raspberry Pi on Local network failing with iPhone

My iOS app, 'QuickSupport' connects with Local IoT Wi-Fi network and executes some SFTP Commands on the click of a button. I have used Obj C based NMSSH Library for this. It works fine with Simulator but when I test on Real Device using Testflight by clicking that button, it crashes and I get a pop-up message:
When I allow this and try again it works.
I tried to give permissions through my iPhone by going to Settings --> Privacy --> Local Networks but my app's name didn't appear. It appears after the crashes when the pop-up appears to Allow connection to Local Networks. Experts, How can I give permission to my app to be able to access Local networks or is there any other workaround?
I was able to resolve this issue. With iOS 14, there is a Security and privacy concern that is why it doesn't allow connection to Local network by default. But we can manually trigger it. Below is the link:
https://www.iosapplication.net/2020/12/22/local-network-in-ios-14/

Classic bluetooth implementation iOS

My app needs to communicate with an android app via classic bluetooth.
We have implemented bluetooth socket in android application. Now i have to connect to the bluetooth service created by this app using uuid.
I have read various post related to this topic, but couldn't find a solution.
Any help will be appreciated.
Q1) Can we connect to iOS app to bluetooth socket created by an android app ?
I have read about Gamekit but it can be used only for communication between two iOS devices only.Correct me if I am wrong.
Q2) Can i use External Accessory framework ?
NOTE:- We are not using BLE in our apps.

BLE - Bluetooth connection issue iOS Objective C

In my app, I am trying to connect to BLE device from inside the app. At times, I get a warning saying "Device cannot be connected, please try to reboot it". When I turn off and turn on Bluetooth, it works fine. Is this an issue with the BLE Device I am using? Or is this an issue with my code.
Regards,
Vamshi

How connect to WPA2 enterprise wifi, NetworkExtension, NEHotspotHelper, iOS

Recently I start to work with network extension in Objective C for iOS develop.
I have already had entitlement provided for apple to use Network extension, so I can connect to wifi network using NEHotspotHelper with this links:
https://forums.developer.apple.com/message/46924#46924
NEHotspotHelper NetworkExtension API iOS9.0
How to get Wifi SSID in iOS9 after CaptiveNetwork is deprecated and calls for Wifi name are already blocked
https://forums.developer.apple.com/message/31150#31150
Now I want to connect to wifi WPA2 enterprise network (this network needs "user name" and "password" to authenticate).
My question: is posible connect to WPA2 network using network extension or NEHotspotHelper?
If it is posible, could you help me with a example? please..
Thanks for your time.

iOS: programatically determine if WiFi connection is 2,4Ghz or 5Ghz

I´m developing an iOS App using Texas Instruments Launchpad CC3200. But the awesome SmartConfig feature is only working for 2,4Ghz WiFi Network connections.
Users trying to do SmartConfig on hybrid or 5Ghz only WiFi connections are failing.
Does anybody know if it is possible to programmatically determine what type of WiFi connection (2,4Ghz or 5Ghz) an iOS device currently has?
Unfortunately, this is not possible unless your device is jailbroken or if you have access to private headers in the API.
The only thing you can do is tell the difference between cellular and WiFi connection using the Reachability class by Apple. The networking tools are very limited in this case.

Resources