cellular-network

Can iOS application use cellular internet connection while doing “Wireless Accessory Configuration” through WiFi?

余生颓废 提交于 2019-12-08 07:00:24
问题 Is it possible to access internet (using cellular) during WiFi device configuration using Apple's "Wireless Accessory Configuration" feature? This device would create the WiFi network and we would need to get data from the server while configurating the device. Specifications: Would iOS automatically use cellular to connect to the internet if there is no internet connection through WiFi? (But still keeps WiFi connection with device) Or is it possible to programmatically switch between

Cloudkit: CKDatabaseOperation not working on cellular

Deadly 提交于 2019-12-07 22:23:59
问题 Hi to all the CloudKit users: I had a horrible time trying to find out why CKDatabaseOperation wouldn't give any feedback. No errors, no callbacks when saving CKRecords on cellular. Could you please let me know what is your opinion regarding this? 回答1: Someone in the Developer Forums of Apple found a solution: https://forums.developer.apple.com/thread/20047 the magic happens when setting qualityOfService = .UserInitiated Example: let publicDB = CKContainer.defaultContainer()

Cloudkit: CKDatabaseOperation not working on cellular

与世无争的帅哥 提交于 2019-12-06 14:27:54
Hi to all the CloudKit users: I had a horrible time trying to find out why CKDatabaseOperation wouldn't give any feedback. No errors, no callbacks when saving CKRecords on cellular. Could you please let me know what is your opinion regarding this? Someone in the Developer Forums of Apple found a solution: https://forums.developer.apple.com/thread/20047 the magic happens when setting qualityOfService = .UserInitiated Example: let publicDB = CKContainer.defaultContainer().publicCloudDatabase let operation = CKModifyRecordsOperation(recordsToSave: [aRecord], recordIDsToDelete: nil) operation

Hexagonal grid representing a cellular network as used in mobile communication systems

大兔子大兔子 提交于 2019-12-06 11:12:19
I am relatively new to Matlab and I want to generate a hexagonal grid that represents a cellular network where each hexagon has a specific behaviour. My question is how does one go from a square grid to hex grid (transfer matrix)?. This is what I have so far. [X,Y] = meshgrid(0:60); figure(1), plot(X,Y,'b') hold on, plot(Y,X,'b') axis square A few years ago I wrote some code to do just that: %// Define input data: close all clear all M_max = 14; %// number of cells in vertical direction N_max = 10; %// number of cells in horizontal direction trans = 1; %// hexagon orientation (0 or 1) %// Do

How to test EDGE or GPRS or any other slow/bad network

拜拜、爱过 提交于 2019-12-06 09:47:38
In my iOS app, I support to work online as well as offline. For this I have used Apple's Reachability code . Now I want to show user is offline if the cellular mobile network is EDGE or GPRS or bad/slow network. I have used the below code( Found solution ). Code: CTTelephonyNetworkInfo *telephonyInfo = [CTTelephonyNetworkInfo new]; NSLog(@"Current Radio Access Technology: %@", telephonyInfo.currentRadioAccessTechnology); [NSNotificationCenter.defaultCenter addObserverForName:CTRadioAccessTechnologyDidChangeNotification object:nil queue:nil usingBlock:^(NSNotification *note) { NSLog(@"New Radio

CTTelephonyNetworkInfo's currentRadioAccessTechnology Ambiguous response

南笙酒味 提交于 2019-12-06 00:14:47
I have a scenario in one of my applications that I should allow the user to sync some data to server only if the connection is at least 4G or LTE. Below is the source code I use and it works fine until the scenario explained below occurs/happens. if ([currentCellularAccessTechnology isEqualToString:CTRadioAccessTechnologyGPRS]) { self.currentCellularDataConnectionType = kGPRS; self.cellularConnectionFast = NO; } else if ([currentCellularAccessTechnology isEqualToString:CTRadioAccessTechnologyWCDMA]) { self.currentCellularDataConnectionType = kWCDMA; self.cellularConnectionFast = NO; } else if

How to access LTE NAS message?

不打扰是莪最后的温柔 提交于 2019-12-05 05:59:46
Is there any way to access NAS messages from LTE network on Android platform? I have all needed software for decoding, but can't get actual message. NAS messages are present in Baseband log (modem). So, you have to capture Modem Logs in order to check NAS message (or any other OTA Message). Those messages does not reach the AP (android) side. So, those messages are only present in Modem Logs. Each modem vendor saves modem log in a different format. They also has its own tool to decode those logs. Some modem vendors are Qualcomm (which has QXDM/QCAT tool), Marvell, Spreadtrum, Intel (or

How to access cellular data usage statistics per application programmatically in iphone?

让人想犯罪 __ 提交于 2019-12-04 16:36:53
问题 I want to get cellular data usage details per application programmatically. Also, please note that, it should not be mandatory to be executed on jailbroken device. Please suggest some API. 回答1: There is no API to get this information on the device. But you can use Charles Proxy to get traffic numbers and traffic itself. You can find implementation details about Charles Proxy in this tutorial article. It's possible to implement your own app that behaves as MITM proxy. 回答2: To check celular

iOS 11 : Cellular Signal strength

狂风中的少年 提交于 2019-12-04 16:27:57
I was fetching Cellular Signal Strength(iOS < 11) as mentioned below, but in iOS 11 , signalStrength is always 0 let statusBarView = UIApplication.shared.value(forKey: "statusBar") as? UIView if let foregroundView = statusBarView?.value(forKey: "foregroundView") as? UIView { let subiews = foregroundView.subviews var dataNetworkItemView:UIView? for subview in subiews { if subview.isKind(of: NSClassFromString("UIStatusBarSignalStrengthItemView")!) == true { dataNetworkItemView = subview break } } var signalStrength = 0 var signalStrengthBars = 0 if let view = dataNetworkItemView { signalStrength

How to access cellular data usage statistics per application programmatically in iphone?

Deadly 提交于 2019-12-03 10:45:48
I want to get cellular data usage details per application programmatically. Also, please note that, it should not be mandatory to be executed on jailbroken device. Please suggest some API. There is no API to get this information on the device. But you can use Charles Proxy to get traffic numbers and traffic itself. You can find implementation details about Charles Proxy in this tutorial article . It's possible to implement your own app that behaves as MITM proxy. To check celular network use this - (bool) hasCellular { struct ifaddrs * addrs; const struct ifaddrs * cursor; bool found = false;