When there is no Internet connection, is there a way to tell the user that they cannot Bump their iPhone to transfer data. I have used motionEnded: method to detect the shake, but the sensitivity is less compared to the Bump feature.
Any help?
use apple's reachability class to check for connection availability and pop up a alertview with your desired message for user.
Your question is not clear. Can you tell more about what you are trying to achieve, what you have done so far?
Anyway If I am getting this right, you want to transfer data when there is no internet connection. Remember bluetooth? Apple has built a GameKit framework on top of it. You can explore that.
Related
I am currently using an adapted reachabilty framework based on Apple's sample code.
The framework works fine, however it provides false postives.
If the user is attached to a wifi network where they are required to login before having a valid connection, the framework shows as an active connection when in fact it isn't.
An example of this is Starbucks' wifi where you must provide an email address before you get online.
Is there a way around this without pinging a certain address?
Currently I am using the reachabilityWithHostname function
Thanks
Daniel
Update as provided by the link below i see this is a limitation of the framework. Are others finding away to alert the user of this?
If your computer is connected to a Wi-Fi access point, but that access point's internet connection is down, reachability will tell you that yes, you have a network connection
Check out this link
Networking is playing an ever more important role in application
development, and Apple's reachability API is a valuable tool in making
network-centric apps play nicely with varying real-world conditions.
Today I'm going to give an overview of the reachability API, what it
does, and how to use it.
This should help you.
In advance I am sorry for my English.
The task consists in defining, whether there is a person in a certain place (at certain office, for example), and to activate depending on it certain possibilities of the appendix.
At first I thought of definition of information on WiFi (or check of the same SSID, or automatic connection to the hidden network with set in the SSID appendix and the password), but, seemingly, not to make it without jailbreak (if somebody knows how - please, answer).
I think, GPS - not the best exit as it is possible to be out of the room, using it.
By the way, I already saw apps determining by WiFi of a point of access so it can be made somehow. I guess.
Actually, question. How it is better to define in the application, whether there is a device within, for example, premises of office?
Basically, if you know location coordinates you can safely use CoreLocation framework. Whether your target device supports region monitoring it will be perfect. It uses not only GPS, but WiFi and GSM as well
Look here: https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/CLLocationManager/CLLocationManager.html
If you really need to get network name you can play with CNCopyCurrentNetworkInfo function of CaptiveNetwork framework.
See:
https://developer.apple.com/library/ios/documentation/SystemConfiguration/Reference/CaptiveNetworkRef/Reference/reference.html
I'm trying to find out whether it's possible to get the current location of a Windows 8 device if it's not connected to the internet via Wi-Fi. I'm aiming this at Windows 8 tablets and I don't think they all support GPS. Does anyone know what would be the best way to go about this? Or is it possible at all? Little bit lost and bombarded with solutions that don't seem helpful for my situation.
Thanks in advance!
You can't.
If theres no internet connectivity and no GPS, there is simply no way to work out where on earth you are!
What I would suggest doing is:
1) Saving the location each time you do it and using a previous location and informing the user.
2) Not doing anything and instead asking the user to turn on their GPS.
But yes, I would still try to find out the location even if their isn't an internet connection, because some devices will have GPS onboard and enabled.
So I am trying to write a simple app that will connect to another iPhone and send messages over bluetooth, and it seems like the best way to do this is using the GameKit. If I am wrong, please point me in the right direction now before you read this whole question, haha.
The two requirements are:
iPhone to iPhone, same application (easy)
I can get the time it took to send the unreliable message (not easy)
I am going to assume this is not possible over GameKit based on the (little) research I have done, and I have not yet found a good guide to the CoreBluetooth framework. Once again, if you could point me in the right direction that would be appreciated.
TL;DR: Is there a way using GameKit to get how long it took the small unreliable message to be sent? If not, can I do this with CoreBluetooth?
-Jake
This feels like a strange question, you want to know, how long it took to send the message between the two phones?
The way to this is to set up a ping between client and server, the server will ping the client, then the client immediately sends the response back to the server, and the server divides the total time by 2.
This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
Incoming call information+iphone
I am beginner for iPhone. How to get number when call is received in iPhone . I don't have basic idea about that. Can anyone help me?
There is no way you can get this information, and I would be very surprised if Apple add this feature ever to their sdk. There will be lot of people around who will misuse this feature.
The most you can get about a phone call is using Core Telephony framework. It lets you detect the status of the call.
A CTCarrier object gives you information about the user’s cellular
service provider, such as whether it allows use of VoIP (Voice over
Internet Protocol) on its network. A CTCall object gives you
information about a current call, including a unique identifier and
state information—dialing, incoming, connected, or
disconnected(emphasis mine).
That is it.
Just read this also. Might be helpful
I am not sure if this is possible. Apple does not allow this.
Would you like it if one of your apps that you had been using picked up a phonenumber that called you and posted it on the internet? That may be one of the reasons why apple doesn't allow this…