My watch app have fall detection feature however apple watch series 4 has default fall detection, so if default is enable would my feature work or not? Apple does not provide any framework to get default access or does it.
Apple does not provide a way to access fall detection.
Related
Is there a way to get access to Apples fall detection on the Series 4. I would like my watch app to be able to detect when the user falls. I am hoping that Apple would let me get notified when they detect a fall. Is this something that is possible in swift?
Apple hasn't made a public API for fall detection. You can file a suggestion with your developer account in Bug Reporter → watchOS + SDK.
I am looking for the way to enable and disable default iPhone camera such as at certain time or latitude/longitude. There are some place where the camera is prohibited, so we can disable it when one reaches at such a place, this is just for an example. Well I thought that disabling and enabling camera in iPhone is not possible. But when my superior gave me the document and said me to check this then I found that its possible to enable/disable default iPhone camera. That document was for enterprise deployment guide, which is associated with enterprise program. There was written the new features of enterprise program and has mentioned
the point of enabling and disabling the default iPhone camera. You can look for the enterprise deployment guide over net and can see that thing. Well I googled for this that how to enable disable the camera, but nothing came. So can you please let me know that how to do this mean enabling disabling camera. Is there any tutorial reference any samples there. Moreover I would like to ask that what is the difference then in enterprise, do we make the apps in the same way in the enterprise as we make for the general developer program.
So how to accomplish this thing enabling/disabling default iPhone camera?
How to implement as well?
well I also thinked same as you are saying that it's not possible. But when I saw the enterprise deployment guide I was shocked.
Here is the link to download this guide and you can have a look over that then you will also come to know that this is possible
Enterprise Deployment Guide
What’s New for the Enterprise in iPhone OS 3.0 and Later
See this para and you can find the point under there where is this mentioned that you can enable/disable camera in iPhone
I'm pretty sure you can't disable the camera arbitrarily. Apple is pretty strict about not letting developers mess with things the user expects to work at all times, and the camera would definitely fall under that category.
So, unless there is some documented, Apple-approved way of doing things, your next best bet is probably jailbreaking and using that to somehow interfere with the camera's operation. I'm afraid I don't know how you'd go about doing that, however.
As for enterprise use and whatnot, I'm not sure, but I would guess that while an iPhone is part of an enterprise network/group/what-have-you, the admins can disable the camera. I doubt that is available programmatically either, however, as it doesn't seem like it would be something made available to developers. So, again, if a method to handle it programmatically isn't mentioned in the documentation you received, it probably doesn't exist.
Allow use of camera: When this option is turned off, the camera is completely
disabled and its icon is removed from the Home screen. Users are unable to take
photographs.
source:
http://manuals.info.apple.com/en_US/Enterprise_Deployment_Guide.pdf
I believe you can if you have gained the Enterprise Edition.
Apple's Location Awareness Programming Guide suggest to include the location-services and possibly the gps for UIRequiredDeviceCapabilities.
My app requires the Region Monitoring APIs. How do I ensure only capable devices can see my app in the store?
You're right, location-services and gps will allow devices other than the iPhone 4 to install your app. You could pick some other feature though that you know is iPhone 4 exclusive, like camera-flash or gyroscope and require that one.
I'm not entirely sure whether apple will frown upon a restriction without an apparent need, however gyroscope appears to me like a likely restriction in a navigation enabled app. If you try this approach, I'd explain things in the text field for the comments to the reviewers. Another caveat would be that you'd risk that a future device wouldn't "fit in" - an hypothetical iPhone mini which would feature region monitoring but lacking a gyroscope or camera flash wouldn't be able to install your app, for example.
To be entirely honest, If I were you, I'd ask apple to make sure.
Check out UIRequiredDeviceCapabilities - Apple Developer Documentation. Basically exactly what you said. Are you looking for instructions on how to do that?
Is this even possible?
If not I'm really surprised this hasn't been open thru the API yet.
Apple doesn't allow the use of low level network/wifi/cellular api's. Interestinlgy during a previous period, there were apps in the app store that made use of private apis (a few WIFI-Scanners for example). They've all been banded from the appStore by now, as far as I know at least.
Also the newly available (since iOS 4) core telephony framework doesn't offer any methods or properties to serve you the information you're looking for.
So unless you're building a non-app-store-app I don't see a legitimate solution to your problem.
*sam
Several apps in the app store use OS 3 and get signal strength.
Apple fully approves them.
I would like to check if the user is using an iPhone 4 or not. How can I do that ?
Thanks !
Sebastian
Apple specifically recommends against this, instead preferring that you check for individual features and act according to these. This makes your life a lot easier when Apple releases new hardware; if for instance Apple releases an iPod Touch with a camera, and you need a camera for your app, your users wont be upset that it tells them "No camera found" when it does have one, all because it reports as not an iPhone. Here is one way to require all the differentiating hardware features. Do not use these for enabling/disabling features that are supported but not required: this can be determined at runtime through the APIs used to interact with that feature.
UIDevice (see here, also the docs) can help you determine if it is an iPhone, but again, don't do this.
To detect the difference between the iPod Touch and the iPhone, we use
if(![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
There might be something similar to check for a the forward camera.