cellular-network

Tracking wifi and cellular bytes sent and received by each process/app in ios

前提是你 提交于 2021-02-08 12:13:24
问题 I went through this link regarding retrieve the applications currently running in iPhone and iPad . Is it possible to track wifi and cellular interfaces for each process running on iphone? 回答1: You can refer to this post to get the data counters, but it is for the wifi/cellular data overall, not only your app: iPhone Data Usage Tracking/Monitoring Edit : Code added - (NSArray *)getDataCounters { BOOL success; struct ifaddrs *addrs; const struct ifaddrs *cursor; const struct if_data

(eSIM Integration iOS) How to use restricted API “addPlan” to enable e-sim profile in iOS device

余生颓废 提交于 2020-05-24 20:08:27
问题 After searching everywhere I found there is a way to add eSIM in iPhone using the following API func addPlan(with: CTCellularPlanProvisioningRequest, completionHandler: (CTCellularPlanProvisioningAddPlanResult) -> Void) I don't know why but completion handler not returning the result of CTCellularPlanProvisioningAddPlanResult just printing the following error. Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo

Android: Get notification for “Mobile data” network type changes

眉间皱痕 提交于 2020-01-24 00:18:25
问题 Working on a Android network utility Know Your Android Network I know that we can easily handle the changes in network state by creating our own Broadcast Receiver and check whether n/w switched from WiFi to Mobile data, But is there a way to get notification when "Mobile Data" switches from one network type to the other. Basically I need to know when "mobile data" connection jumps from one network type to the other, Below can be the various network types: NETWORK_TYPE_1xRTT NETWORK_TYPE_CDMA

Android: Get notification for “Mobile data” network type changes

蓝咒 提交于 2020-01-24 00:18:14
问题 Working on a Android network utility Know Your Android Network I know that we can easily handle the changes in network state by creating our own Broadcast Receiver and check whether n/w switched from WiFi to Mobile data, But is there a way to get notification when "Mobile Data" switches from one network type to the other. Basically I need to know when "mobile data" connection jumps from one network type to the other, Below can be the various network types: NETWORK_TYPE_1xRTT NETWORK_TYPE_CDMA

How to access LTE NAS message?

a 夏天 提交于 2020-01-02 03:45:12
问题 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. 回答1: 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

Programmatically getting the iPhone's carrier signal strength

孤人 提交于 2020-01-01 05:14:05
问题 Is there a way to get the iPhone's carrier, and/or the current signal strength, using Objective-C? I know how to determine if a data connection is present, and whether or not that connection is wi-fi vs. cellular. I also know that you can manually place the iPhone into "field test" mode by going to the phone app, and dialing #3001*12345*# and hitting Send. 回答1: You made me curious and I found out that it's actually *3001#12345#* (hashes and stars exchanged). 回答2: This probably won't pass

Does IOS support simultaneous wifi and 3g/4g connections?

独自空忆成欢 提交于 2019-12-30 09:54:50
问题 I have a customer who has a device that has its own builtin wifi hot spot and he would like to connect it to an iPad 4G vie wifi and forward data at the same time through the cellular connection. Is this supported in IOS and if so can you point me to the appropriate documentation. Any suggestions are appreciated. Jim 回答1: Comparing to Android, iOS supports simultaneous work of multiple network adapters. It's necessary to write C code working with BSD sockets, doing enum, bind, and handling

PHP script has extra 0 at the end of the output on a cellular connection

烂漫一生 提交于 2019-12-24 02:24:03
问题 I have a very simple PHP script as follows: <?php echo "$$"; ?> On wifi or wired connections, the output is normal, as follows: $$ But on my cellular connection (which is LTE on AT&T), the output is: $$0 What's up with the zero in the output? The issue only seems to happen on AT&T network, I tried on Verizon network and it was working. 回答1: Adding this line of code solved the problem: header('Content-Type: text/plain; charset=utf-8'); 来源: https://stackoverflow.com/questions/25467118/php

How can I send an MMS via a GSM/GPRS modem connected to a linux computer? [closed]

拥有回忆 提交于 2019-12-23 02:58:18
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a directory which contain say 50 image files (.jpg) each less than 300kb. This files should be attached as MMS and send from Linux computer using GSM/GPRS modem. I need to work out how to package a MMS and

iOS 11 : Cellular Signal strength

你离开我真会死。 提交于 2019-12-21 21:15:07
问题 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 }