Iphone - how to programmatically answer a call - iphone

I saw this application on Cydia ( forgot the name) that will answer/ reject a call when you shake the phone.
Any ideea how is it done ? Couldn't find anything in SDK.
Thanks

I don't think it'll be in the SDK for sure. Apple wouldn't include it.

It's not somethhing that you can do using the official SDK. If you want to do this, it'll be using an undocumented/private API that Apple will not allow through their review.
If you want to be able to sell your application on the App Store, then you're going to have to let go of this idea. Else, you're going to have to resort to other means to find out how to do it.
Nothing personal, but I'm against jailbreaking, so I can't help you.

Related

How to build an iPhone app, make sure this app only run on a no Jailbreak device?

I am an iPhone developer, I am doing a project. For security reasons, I must make sure my app run on a no jailbreak iPhone. I want to know how to check it use public API.
Thanks very much!
No API exists to perform such a check.
Jailbreaking a device (using any of the various forms of jailbreaking) only needs to touch files which are outside an application's sandbox. Attempting to inspect them therefore carries a risk that your app will be rejected. Even if you can inspect them you have no way to differentiate a change due to jailbreaking from a change due to an OS update.
Finally please be aware that a jailbroken device does not necessarily mean the user has pirated your app. Users of jailbroken devices are free to purchase and install apps via iTunes just like anyone else and are likely to be rightly unhappy if your app refuses to run.
also, Apple removed the API for detecting jailbreaking. Read here on ars
If that would be possible using a public API, there wouldn't be any problem using jailbreaked iPhones, would there. Every app (including the OS) could just use that API...
It's impossible to verify that your app is running only on a non-jailbroken device. Unfortunately there's nothing you can check.
There are a few tricks you can use to determine programmatically if your app has been pirated, but they're far from foolproof; the most you can really do is determine if your app was pirated using the most common automated pirating techniques. Anyone really determined to pirate it can ensure your app doesn't know it's been pirated even if you use the techniques.
I wouldn't invest time in such things cause sooner or later "they" will find a way to run your App on a jailbreaked iOS device.
Instead take this time and develop more unique feature. Feature people are glad to have and even they pirated your App they will pay for it.
Yeah I know this sounds ridiculous but I think quality software will find honest buyers.
I know this answer doesn't answer your question and I want to add that iOS doesn't have a API to check if the device is jailbroken.
I hope I could help.
As the other answers say, there's no full-proof way of blocking piracy on your apps. I have a couple of apps that have been pirated and, truth be told, I was kind of happy to see that. Unless these people hack every single app on the App Store, it made me feel a little proud that someone had decided my apps were worth pirating. Almost a "yup, I've made it" kind of feeling. :)

how to apply DRM for iPhone Applications

Sir i had developed an iphone application and released on cydia, which i seen it to be cracked in with in a day, later i came to know about the DRM , can any one please help me how to intehgrate DRM with my application
Thanks in advance
I agree with BoltClock, its semi-pointless to have app protection in your app, I have several in Cydia. With my largest app, I do have my own implementation of "security". I wont give away my secret, but there's a way you can check against the Cydia Store API to see if your app has been legitimately purchased. Get with Jay Freeman (saurik) on how to obtain the API for this. He has written up a few guides on his backend API for Developers to check if the app has been purchased.
Alternatively, you can provide a "Free" version of your app, or a "Trial" to allow users to try your app, and if they like it, they can buy it.
A time-sensitive feature may be useful too, that is something you can look into.

How to check if my iPhone app is hacked/cracked?

I'm wondering if there are some ways to check if my application is hacked?
I mean, I don't really want to prevent my application from hacking, but I would like to list all iPhone (UUID) that use my hacked application.
Check out mtiks. They do free piracy monitoring, but you'll have to re-release your app to the appstore. If you don't have anything setup currently, you're not going to be able to tell who's using it.
Check to see if encryption was removed from you app bundle or any other changes were made.
If you don't prevent your app from being cracked by any different behavior, such as not working, this makes your detection code much harder to find.

InApp Purchase rejected in App Store

I just got rejected on my Free app from app store. I uploaded 3 apps, HD(iPad), PayedIphone and freeiphone. In the free-version I had a link to the fullversion.
Apparently I need inAppPurchase in the free-version rather than linking to the fullversion.
How should I implement this in the easiest way? All I want is a button that says Buy full version and then the free-version becomes the full version. Is it possible to use just those two or do i need to create another full version for this purpose.
I have no idea how to make the inAppPurchase except the tutorials Google give me, any recommendations or example code I can use?
I found this site very helpful in setting up an in-App purchase:
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/
I got it working after watching this tutorial on u-tube. I can really recommend it.
http://www.youtube.com/watch?v=xGDGO5P95Dg
All you need is this: http://blog.mugunthkumar.com/coding/iphone-tutorial-%E2%80%93-in-app-purchases/
By far the easiest In-App storekit to implement... He walks you through the whole thing and then there is a link at the bottom with the source code zip file. Make sure you read it and get a good understanding. Rule of thumb: Never implement any one else's source code without understanding it first. You will save yourself a lot of headaches with debugging later.
Remember though: Now you have to build in a network check to see if a network exists prior to them clicking the "upgrade" button or else your app will get rejected once again. Luckily, I have just the thing for you: How to check for an active Internet connection on iOS or OSX?
Also, I agree that NSUserDefaults are the best way to go, and luckily that source code link above does all of that for you! It seriously doesn't get any easier. Props to this guy
No way. The proper way to do that is to include all the functionality of the fill version in the free version and only unlock those functionalities whenever the user buy your inApp purchase item.
start by attentively (details really matters when inApp purchase is concerned) reading the inApp purchase developer guide at developer.apple.com
There is a sample project here..
http://www.theapptree.com/samples

How would you build iPhone apps without the use of the iPhone SDK?

If you wanted to avoid the agreement to use the iPhone SDK, you'd have to not use it.
If you don't want to jailbreak, you have one option:
Web app
I'm not sure what the toolchain is on the jailbreak side, but I suspect you may be able to avoid the official SDK that way, but, obviously, you've cut your potential market by at least 90%.
Even if you would successfully avoid the SDK and the agreements that come along with it, you'd have to agree to the app store terms of use once you'd like to submit something. Same goes for development certificates, mobile provision profiles,...
So, the best answer to your question propably would be: I wouldn't, and you shouldn't.