How to check if there's a carrier signal? - objective-c

I'm planning to develop an iphone app and I need to know if it's possible to check if the iphone has any carrier signal or if it's as "no service".
I've talked with some developers and some keep telling me that it's possible while others say that it is not possible...
Anyone can help me with that?

You could look into the way MKNetworkKit handles reachability to domains. Haven't looked in depth, but I think it can tell the difference between wifi, cell network, and no service. That should give you everything you need.
https://github.com/MugunthKumar/MKNetworkKit

You can use:
int wl = CTGetSignalStrength();

Related

get iOS 7 udid without access to a computer?

I need to ask my clients to send me the udid of their iOS devices in order to add them to an adhoc distribution profile. The main problem is that they are used to iOS but not much to computers. Anyway, it would be a pain for me to explain them how to install iTunes (or even Xcode) to get the udid. Most of the tutorials which describe the iTunes process are in english, I don't want to loose time to translate one of them. And even if I do it, I fear that they will not appreciate loosing their time following it. Any suggestion ?
I use a web online tool at http://www.easy-udid.com to get my customers UDID, I think it's the easiest way for them.
Also you can use service http://udid.io
It is easier because you don't need to ask your clients to write your email address. You just send them link “http://get.udid.io/?mail=your#mail.com” and they will need only 5 taps to send UDID on "your#mail.com"

Objective-C Async communication between IOS devices

Is there a way to perform async communication between iPhones/IOS devices? I have been researching and thought maybe APN might fill that void, but it sounds like I can't initiate an APN push from an IOS dvice to another, and even if I could I can't trigger the "event" on the other device with just an APN push from what I can identify.
Does anyone have any examples or general advice for IOS device interaction for devices that are not in GameKit (i.e. wifi/bluetooth) range that does not require an intermediate service (urban airship, dedicated server, etc) or will I need to have a 3rd party in order to trigger and/or sync these interactions between devices?
Sorry I don't have any code or details as this is still in the planning phases for me. Any pointers would be greatly appreciated.
The answer is : use a server side app and have all your devices talk to that server.
If you dont want or cannot host an app, you can use a cloud solution based on websocket like Pusher. You can then subscribe to events and post messages with data.
They have an iOS client library
http://pusher.com/docs/client_libraries
P.S: Also have a look at Parse and Stackmob , i remember that had this kind of feature was in their roadmap, but i don't know if it's available yet..
Hope this helps,
Vincent

How to set wallpaper for lock screen in iPhone or iPad

I have gone through many of similar post that I have asked here. I have understood that there is no public API for doing this in iOS devices and if we use the private API for this purpose, apple will not accept it too. But I have found an application in itunes which does the same feature.
Here is the link :
http://itunes.apple.com/us/app/sticky-notes-hd-with-bump/id364874025?mt=8
If apple do not support this, how this application is in Appstore. Then they may have did this in some other way. So I hope this feature can be implemented somehow.
Does anybody have any idea regarding this.
Thanks in advance
Thats impossible to do.
Have you bought the app you referenced to? Did you see it?
The app that you reference generates a picture that you -- by hand -- need to set as lockscreen/wallpaper.
One thing that goes in that direction is the MPNowPlayingInfoCenter; it allows you to set what's being shown in the "now playing" info on the lock screen, but that's about how far you will get.

Turn iPhone into a server programmatically?

I want to make my iPhone app display on a Mac's screen, kind of like AirPlay does with other machines. The only way I have heard to do this is, although I do not like it, turn the iPhone into a server. Unfortunately, I cannot figure out how to do so. I also wanted to set it up in such a way that my Mac automatically detects it. I have seen a similar setup in the game Chopper 2. My Mac app will have a simple timer that fires every few seconds to look for the iPhone, in the same way that Chopper 2's "Find iPhone" button does.
Is there a simple way to turn the iPhone into a server, or start a "session" like Game Center does?
One last thing: I know it is somehow possible, because another app I have actually gives my iPhone a web address at the click of a button. It is called the Dicenomicon, if you want proof.
First there is no easy way to redirect your display to Mac, even if you made it a server of some kind.
Second, to discover or publish customized services on WLAN, you may want to refer to the samples on Bonjour:
CocoaHTTPServer: a simple TCP/HTTP server.
WiTap: an app that discovers and connects to services of the same kind on WLAN by Bonjour.
I'm not really sure what you mean by "server", because there is no way to share the screen of an iPhone using the official SDK, although this is possible by jailbreaking.
It would be possible, however, to send data back and forth between the Mac and iPhone, and display the data on the iPhone, on a Mac. Using that data, you could try to recreate the interface on the Mac. All of this could be accomplished using sockets. A class that might help with that would be cocoaAsyncSocket, which makes network programming a lot easier.
The auto-discovery of iPhones on the local network is achievable with Bonjour. Without getting into too many details, NSNetService would allow you to publish a service for your app from an iPhone, and NSNetServiceBrowser would allow you to find that service on the local network from the Mac. From the NSNetServiceBrowser, you could establish a socket connection with the iPhone.
Good luck!
You might want to take a look at the GameKit APIs, I know they do something similar between two iOS devices.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html

How to exhange data between 2 iPads?

i'm trying to establish real time connection between 2 ipads.
so far, i've done bluetooth already, but i want to do it over the internet as well. can someone point me in the right direction for the best way to do it?
thx in advance.
http://code.google.com/p/cocoahttpserver/
If you want the app to handle http requests you could try this. Implementing it will be quite a trick, so good luck and have fun!