Can I force an iPhone user to upgrade an application?


        In general forcing the user to update our application mandatorily might not go well from user stand point.
        In-spite of the above fact,  Sometime you do have to force an Upgrade for security or other valid reasons. Lot of gaming applications in the market does this sought of updates.
        some of the Financial Enterprise apps which are right there in the App-Store were able to force app users to mandatorily update it to latest version.



How do i do this?

Get Version info Using Itunes web service 

NSURL *url = [NSURL URLWithString:@"http://itunes.apple.com/lookup?id=<Your app ID>"];
versionRequest = [ASIFormDataRequest requestWithURL:url];
versionRequest setRequestMethod:@"GET"]; 
versionRequest setDelegate:self];
versionRequest setTimeOutSeconds:100];
[versionRequest addRequestHeader:@"Content-Type" value:@"application/json"]; 
[versionRequest startSynchronous];

Response string of our REST call 


NSString* jsonResponseString = [versionRequest responseString];
NSDictionary *loginAuthenticationResponse = [jsonResponseString objectFromJSONString];
NSArray *configData = [loginAuthenticationResponse valueForKey:@"results"];
for (id config in configData)
{
    version = [config valueForKey:@"version"];
    
}

Compare Both Versions 


NSString *version = @"1.0";
if (![version isEqualToString:[itsUserDefaults objectForKey:@"version"]]) 
{
    UIAlertView *createUserResponseAlert = [[UIAlertView alloc] initWithTitle:@"New Version!!" message: @"A new version of app is available to download" delegate:self cancelButtonTitle:nil otherButtonTitles: @”Update", nil];
    [createUserResponseAlert show]; 
    [createUserResponseAlert release];//Avoid if using Automatic reference counting
}

Redirect User

-(void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
    NSString *iTunesLink = @"itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=<appid>&mt=8";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:iTunesLink]];
}

66 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. NSURL *url = [NSURL URLWithString:@"http://itunes.apple.com/country name/lookup?id=(appstoreId)"];
    like if french then: fr
    And
    NSString *iTunesLink = @"itms-apps://itunes.apple.com/app/id(appstoreId)";

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Its good to updates apps and versions of installed apps in smartphones for mobile and others major security issues. IOS apps development companies like to use this features in apps to send notifications to users to update apps as soon as possible.

    ReplyDelete
  5. We offer cross platform mobile solutions including SIP dialer to iPhone Application Development Company worldwide clients. We specialize in the development of business apps for iOS, Android, Windows, and SmartPhones.

    ReplyDelete
  6. Smartphone’s latest versions come in market time to time in which you can upgrade it easily. It while all Mobile application development is also available can easily download and upgrade your status.

    ReplyDelete
  7. Thanks for your informative article on ios mobile application development. Your article helped me to explore the future of mobile apps developers. Having sound knowledge on mobile application development will help you to float in mobile application development. iOS Training | iOS Training Institutes in Chennai

    ReplyDelete
  8. Your article is quite interesting but I have some question regarding it...
    event planning apps for android

    ReplyDelete
  9. Thanks your blog is awesome.
    thanks for sharing information.
    videocon plan
    Videocon Telecom invests approx Rs 130 Cr to upgrade its network to 2.75G EDGE, a 3G standard technology, to enhance Customer experience on data speed. Rolls out a full-fledged marketing campaign to get Customer attention.

    ReplyDelete
  10. Thanks for sharing the information.Gone through your blog,really it's truly amazing and glad to read your blog.Mobile Application Development|Web Development Company in Bangalore

    ReplyDelete
  11. Capanicus as a iPhone Application Development Company in India understand that the application is not about your organization, and it is not about our company and designers.

    iPhone Application Development

    ReplyDelete
  12. Hi there,

    I have read your blog and i got a very useful and knowledgeable information from your blog. Its really a very nice article.
    Thank you so much for sharing. Mobile Application development Company

    ReplyDelete
  13. Great Post, I read it well. very useful info Thank you so much for sharing this one really well defined all peaceful info regarding iphone development.- iPhone app development

    ReplyDelete
  14. Oracle DBA Training in Chennai
    Thanks for sharing this informative blog. I did Oracle DBA Certification in Greens Technology at Adyar. This is really useful for me to make a bright career..

    ReplyDelete
  15. Whatever we gathered information from the blogs, we should implement that in practically then only we can understand that exact thing clearly, but it’s no need to do it, because you have explained the concepts very well. It was crystal clear, keep sharing..
    Websphere Training in Chennai

    ReplyDelete
  16. Data warehousing Training in Chennai
    I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly..

    ReplyDelete
  17. Selenium Training in Chennai
    Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    ReplyDelete
  18. Oracle Training in chennai
    Thanks for sharing such a great information..Its really nice and informative..

    ReplyDelete
  19. I have read your blog and i got a very useful and knowledgeable information from your blog.You have done a great job.
    SAP Training in Chennai

    ReplyDelete
  20. This information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post,thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
    Android Training In Chennai In Chennai

    ReplyDelete
  21. Pretty article! I found some useful information in your blog, it was awesome to read,thanks for sharing this great content to my vision, keep sharing..
    Unix Training In Chennai

    ReplyDelete
  22. I found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing..
    SalesForce Training in Chennai

    ReplyDelete
  23. There are lots of information about latest technology and how to get trained in them, like Best Hadoop Training In Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will
    make me to get trained in future technologies Hadoop Training in Chennai By the way you are running a great blog. Thanks for sharing this blogs..

    ReplyDelete
  24. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
    Informatica Training in chennai | QTP Training in Chennai



    ReplyDelete
  25. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
    Selenium Training in Chennai | QTP Training in Chennai

    ReplyDelete
  26. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..
    Selenium Training in Chennai | QTP Training in Chennai

    ReplyDelete
  27. Thanks for Information Oracle Apps Technical is a collection of a bunch of collected applications like accounts payables, purchasing, inventory, accounts receivables, human resources, order management, general ledger and fixed assets, etc which have its own functionality for serving the business
    Oracle Apps Training In Chennai

    ReplyDelete
  28. Oracle Training in chennai | Oracle D2K Training In chennai
    This information is impressive; I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic..

    ReplyDelete
  29. Thanks for the share.We are a proficient web development company in Bangalore that offers an extensive range of services like web application development, website designing, e-commerce solutions, application development, web hosting services and more.
    Web Developers in Bangalore|Website Designing in Bangalore

    ReplyDelete
  30. This comment has been removed by the author.

    ReplyDelete
  31. Really it was an awesome article...very interesting to read..
    Thanks for sharing..
    IOS Development

    ReplyDelete
  32. Thanks. Yes, it took me several hours to find and organize all these topics. The list even includes topics from the first forum so you might want to take a look.
    Enterprise Mobile Security (EMS) Market Report | Password Management Market Report

    ReplyDelete
  33. Thanks for sharing information.
    recharge plans
    Videocon Telecom comes up with LOWEST & UNMATCHED TARIFF in Haryana; Offers ALL LOCAL CALLS at only 25P/min.

    ReplyDelete
  34. Very useful information for ios development …Thank you for sharing this information… App Buzz

    ReplyDelete
  35. Very useful information and i am planning to do ios training in chennai can anyone help me out in choosing best ios training institute in chennai.

    ReplyDelete
  36. Silicon IT Hub stays innovator in offshore iPhone application development India with skilled and experienced iOS development team that takes care of your varied iPhone and iPad application development projects.

    ReplyDelete
  37. Phoenix infomedia is india's best IT Company. It has very supportive and dedicated android and IOS app development team. I worked with these guys they all are well experienced and punctual of time.

    ReplyDelete
  38. This comment has been removed by the author.

    ReplyDelete
  39. i am doing same thing but iam getting empty array for specific app

    ReplyDelete
  40. I just want to say that all the information you have given here is awesome. Thank you
    best ios training institute

    ReplyDelete
  41. I really didn’t know all these things before which you have informed us through your best writing.
    Iphone app development in hyderabad

    ReplyDelete
  42. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    Happy blogging and keep posting iPhone Apps Development Company India.

    ReplyDelete
  43. This is what I was looking for from last week. Great work done. :)
    I like the way you write. Awesome, keep it up.
    Great information provided about IOS Training . I appreciate your work.

    ReplyDelete
  44. Wow!!! Honestly speaking you are really a great writer. What I required I got it. Thank you so much.
    I never read this type of article before. I appreciate you for the article you have written. Thanks.
    Iphone Training

    ReplyDelete
  45. We offer cross platform mobile solutions including SIP dialer to iPhone Application Development Company worldwide clients. We specialize in the development of business apps for iOS, Android, Windows, and SmartPhones.

    Apple Service Center in Bangalore

    ReplyDelete
  46. One question for this article.

    Suppose app store version is 1.0 as one version of app is already live. now we want to add force update feature when we are launching 2.0 version. how the code works when apple is reviewing the app.

    like we are submitting new version for review and when apple testers will see it, that time app will ask for update as app store will have version 1.0 while new submitted build is having 2.0. In that case apple will reject the binary.

    ReplyDelete
  47. I’m eager to find the valuable information and for me this is the right place to get the good stuff.
    Value Softtech Solutions

    ReplyDelete
  48. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    iOS Training in Chennai



    ReplyDelete
  49. Very useful information for ios development …Thank you for sharing this information.
    unix Training in Chennai



    ReplyDelete
  50. Great job, but i also got one doubt wheather android apps will be applicable in iphone. If so how can i upgrade it. can you please explain me about that.
    Regards,
    Deeksha

    IOS Training in Chennai

    ReplyDelete



  51. Very nice blog...... Hot Tot Hair Products seems to be very useful.... I would like to try them if i could buy them in india.... Nice work, keep it up.

    Apple iPad Service Center Chennai

    ReplyDelete
  52. This comment has been removed by the author.

    ReplyDelete
  53. Thanks for the Information, thanks for this fine Post. I will subscribe to your feed for updates.

    SEE iPhone Apps Development Company India

    ReplyDelete
  54. Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    iOS Training in Chennai

    ReplyDelete
  55. great nice blog thanks for thansk for sharing..!!!
    website designing

    ReplyDelete
  56. I am very happy when read this blog post because blog post written in good manner and write on good topic. Thanks for sharing valuable information
    Web Designing Company in Bangalore, Web Development Company Bangalore

    ReplyDelete