简体   繁体   中英

Programmatically uninstall iPhone application

In my iPhone application, I wanna show term and condition of my company to user and ask user to agree or not if first time application load. If user doesn't agree, I want to uninstall my application from user's iphone. Is it possible?

No but you can prevent the user going any farther into your app unless they accept the terms.

They will manually uninstall if this is the case.

No, there's no way to do this from the API. The best you can do is lock down your application if the user doesn't agree to your terms.

Why will you like to do that ? I will suggest that your application should not proceed ahead and keep on giving the dialog of acceptance. So user will not be able to use your application till he/she says yes. Let the user install/unistall the app if he/she wishes. This also gives your application the opportunity of getting accepted by user at some point of time in the future.

hm, I think apple had an ToS for the applications that appears on the app store. Then, Why would you like to do that..?

I think all you have to do is create an splash view/screen for the first time the app launch to show to the user about your company rather than trying to create an uninstall script.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM