I've built a multiplayer card game using GameKit, everything works fine unless a user is on an LTE network. If they are I get a didFailWithError No Network. Wifi, 4g, 3g, everything else works perfect.
Is there a reason the LTE network isn't detected or a way to get it to work?
This was a bug for the initial release of iOS 7.0. After iOS update 7.0.3 the problem has been fixed.
Related
I have tested a reachability code provided by apple but it fails in following scenerio. Same is tested by AFNetworking library 2.0, and it also fails:
1). Turn on wifi and Run code.
2). Turn off you your data connection just by unplugging your cable from device, but keep in mind you have a wifi signal on your iphone device.
3). Now run code and it will say internet unavailable.
4). Now connect cable again in wifi device.
Now run your code again and it will says that your network is unavailable, although you can check safari is safely browsing.
You have to restart your iphone again to have a normal codition.
Note: it fails only when you check with this scenerio. it works fine with cellular network.
What can i do ? is it an apple bug ?
I'm working on test automation for an app. I'm looking for a way to automate connectivity tests. For that I need to be able to toggle 3G and wifi. I've been going through the private api headers but I haven't found a method that would scream 'I do that!'.
Can anyone point me in the right direction, please?
I can't see this being possible. The iPhone 4 has a setting for 3g on or off in iOS 5, but the iPhone 4s doesn't. If it was possible to turn off 3g in the iPhone 4s I think Apple would have retained that ability in iOS 5.
I assume you've seen the reachability sample code
Thinking about this laterally, iOS connects to known WiFi hotspots when available - so you don't necessarily have to run this on the phone. You could just toggle your WiFi hotspot which you're connecting to on/off, and iOS should automatically switch (as long as any other known WiFi access points aren't in range) to 3G and WiFi respectively.
I am testing the Reachability api, but my physical device only has WiFi access, as I don't have a phone contract. My code needs to distinguish between being connected to 3G/2G or WiFi. Is it possible to simulate a 3G connection on the iPhone simulator?
Clarifications: I am using Snow Leopard. Limiting the bandwidth is not what I need. I need for the actual interface to be identified as the 3G or 2G radio, as opposed to WiFi.
If you are using Lion try the Network Link Conditioner
Nowdays there is a part in Preferences on the device (when registered as a developer device) where a "Network Link Conditioner" is available.
You might also like Speed Limit.
Edit: I'm not sure if this will work as an identifier for 3g though. I'll update my answer after I do some tests (I'm working on exactly the same thing right now!)
I dont think that it is a build-in-functionality in iphone-simulator. But I test it sometimes on my device with wifi (and 3g) disabled.
If you dont have an iPhone but sth. similar (Android for instance) then just enable tethering on your device and use the tethered internet-connection. Then your iPhone-Simulator only gets slow speed ;)
edit: another idea is to limit the bandwidth of your mac. I found this tool online (have not tested it) which should be able to limit network-traffic (to your local router/modem)
I'm trying to develop an iPhone application which uses the geolocation libraries. Is this feasible for the iphone simulator to simulate the GPS functionality without the use of my PC's Wi-Fi infrastructure? Does anyone know if the iphone simulator can spot your location using your IP-address only (so only the Ethernet cable connection is required)?
Thanks in advance.
You should test that functionality on an actual device. I believe the simulator will always show Cupertino, CA as the location.
No it won't work using ethernet. Core location appears to only work with WIFI even though at the end is the same router.
CoreLocation doesn't work in the simulator, but there are options
http://github.com/futuretap/FTLocationSimulator
Simulator doesn't have this functionality, but iSimulate has (it's not mine :-( ). It connects the device and simulator per WiFi and sends location events to the application within simulator: real GPS events and a few predefined locations around the world. Pretty cool!
Can somebody explain why the reachability app behaves strangely?
I built it under IOS 4.2
When I start it, all three text boxes show an available network.
If I turn the airport off, they all show no connection.
Turning the Airport back on again only Remote Host and TCP/IP routing are shown as availabl. Local Wifi remains 'Access not available'
This may seem like a dumb question, but did you build it in the simulator? Results on the simulator won't mirror those on the device, as the 3G in the simulator is simply an abstraction of the wifi radio in your Mac. You'll need to use a device in order to see it work.