Вопрос

My client has come up with a strange requirement. He wants the iOS application to be deleted from the iPad/iPhone on 5 unsuccessful login attempts. I want to tell him that, its just NOT possible. Does anyone know any way of programmatically write a piece of code to self destruct an iOS app ?

Это было полезно?

Решение

At least on non-jailbroken devices this won't be possible. I mean, you can't even close an app without the user explicitly pressing the Home button. Also, the user could just re-download the app, rendering self-destruction moot.

You could - as is common in the Internet - just ban the client's IP or UDID for a while. Or store the number of login attempts on the device and refuse to let the user log in after too many attempts.

Другие советы

You can lock the user out of the application, and delete all of the cached data. But no, you can't erase it.

I suppose you could call abort() on every launch after 5 failed attempts, but I'm not sure you'll get through review if that happens.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top