How can I access raw data from the altimeter sensor on apple watch? - apple-watch

I am trying to get the data from the barometric altimeter sensor on apple watch.
I tried using the apple documentation (it worked for accelerometer and gyroscope) but when I tried to use the methods documented in the CMAltimeter class, it did not recognize any of it (related to the altimeter).

Related

WatchOS2 access to heart sensor data

Has apple released any documentation on how to access data from the infrared and photodiodes that make up the heart rate sensor with the new release of watchOS 2.0.1?
The OS gives you access to the HealthKit. Within the HealthKit you have an access to the heart sensor data.
You may find this link useful:
Link

Reading NMEA data from iPhone GPS receiver

I am looking for a way to get NMEA data from the builtin gps receiver of a iPhone.
Is there a way to access this data without using CLLocationFramework?
NO, apple does not allow you to acces the GPS in an other way then via the CoreLocation Framework.
This also means that device without an GRPS chip can support location (it will use triangulation via WiFi).
I don't see why you wouldn't be able to forge your own $GPGGA sentence based in information that can be retrieved from CLLocationFramework. Obviously you won't be able to set then number of satellites and HDOPs value will be approximated. If you must have NMEA0183 sentences, you could create them yourself.

Why is accelerometer:didAccelerate: deprecated in IOS5?

The release of IOS5 has this core function listed as deprecated. Does anyone know what will replace it? I'm assuming that apple is not going to remove the accelerometer from iPhone 5.
I did not yet use iOS 5, but already in 4.x UIAccelerometer and UIAccelerometerDelegate were replaced by the CoreMotion framework. It is more sophisticated, takes gyroscope signals into account and performs a sensor fusion i.e. does calibrating stuff like bias calculation for you.
Basically the CMDeviceMotionHandler block callback is now the equivalent. It is called every deviceMotionUpdateInterval seconds or you can go with your own timer loop and pull the data. It is pretty straightforward and easy to use. Look at Simple iPhone motion detect and follow the three links to the SDK docs.
There are three things you have to bear in mind:
Working with Device Motion requires iPhone version >= 4 or newest iPod touch generation because it relies on gyroscope support
When using Device Motion you must not use low pass filtering to extract gravity because it is done for you
If you want to support older hardware, you have to work with raw data. This is done by creating a CMAccelerometerHandler and calling startAccelerometerUpdatesToQueue:withHandler:. Then you have to extract gravity with low pass filtering like in didAccelerate

Getting cell tower information in an iOS application?

My question is simple but I haven't found a good answer anywhere. My question is this: Is there a way through either the iOS SDK or third-party frameworks to get cell tower location data? Meaning cell tower location, distance from you, etc.
The signal application for iOS does this, so I know it's possible, but I can't seem to find any documentation or resources on the matter.
Thanks!
There is no official way to do this as far as I know.
iOS SDKs abstract that info to a single and easy to use location API.
The application you link is probably using private APIs from iOS.
That means that developer is using undocumented functions from iOS.
If you really want to find more about it, you can try contacting him.
Also check this:
iOS Private API Documentation
The signal app used some private API which will lead to immediate rejection by Apple, which is why it says jailbreak device only.
Plus, you may find this post helpful: iPhone signal strength
The CellStumbler application (CellStumbler at code.google.com) uses undocumented methods in the CoreTelephony framework. There is a CellInfo struct defined which can be queried via the _CTServerConnectionCellMonitorGetCellInfo method.
However, on iPhone-4S - iOS5 the CTServerConnectionCellMonitorGetCellCount always return zero - so no cell info can be queried. Things may look different on a iPhone4/3S since Apple changed the baseband modem from Infineon Gold to Qualcomm mdm6610.
You mal also try to evaluate the built-in FieldTest app (just dial *3001#12345#* to start) which gives you a couple of info related to your cellular network status.

Is it possible to access data from the proximity-sensor of the iPhone surface?

When you hold the iPhone to your ear, it detects that there's something (proximity-sensor) and switches off the display.
is it possible to access this sensor in an iPhone app?
It is possible via undocumented System calls, this is how Google's voice search works on the iPhone to start listening when it is close to your ear (or so i'm told). The API isn't publicly exposed though so although google got the app on the store your app might be subject to more scrutiny.
Sorry I can't tell you exactly what the calls are.
I don't think so.
Rather, there aren't any published API's for it.
Google's voice search uses it, but that caused some fuss as they apparently used some unpublished functions.
http://www.iphonehacks.com/2008/11/iphone-app-news.html
EDIT:
To clarify, there are published API's allowing you to turn it on and off, but nothing that will allow you to detect when it has been triggered.
I was able to find this functionality in Apple's documentation here, however I haven't tried it yet.
The UIDevice instance also provides access to the proximity sensor state (described by the proximityState property). The proximity sensor detects whether the user is holding the device close to their face.