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]];
}

102 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. This comment has been removed by the author.

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

    ReplyDelete
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. Selenium Training in Chennai
    Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

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

    ReplyDelete
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  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..
    Informatica 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. 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
  28. 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
  29. 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
  30. 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
  31. This comment has been removed by the author.

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

    ReplyDelete
  33. 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
  34. 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
  35. Very useful information for ios development …Thank you for sharing this information… App Buzz

    ReplyDelete
  36. 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
  37. 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
  38. 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
  39. This comment has been removed by the author.

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

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

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

    ReplyDelete
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    iOS Training in Chennai



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



    ReplyDelete
  51. 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



  52. 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
  53. This comment has been removed by the author.

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

    SEE iPhone Apps Development Company India

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

    iOS Training in Chennai

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

    ReplyDelete
  57. 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
  58. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    iOS Training in Chennai
    Android Training in Chennai
    php Training in Chennai

    ReplyDelete
  59. Great news publishing in this post about the new launched iphone device for the intense of growing the
    iPhone Apps Development Company

    ReplyDelete
  60. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Home Automation in Chennai
    smart home in Chennai
    Home security in Chennai
    Burglar alarm in Chennai
    Wifi Camera Chennai

    ReplyDelete
  61. Oh Great, keep sharing your blogs, I have learnt a lot from you- ios App Developers

    ReplyDelete
  62. Great news publishing in this post about the new launched iphone device for the intense of growing the iPhone Apps Development Company India

    ReplyDelete
  63. "I am following your blog regularly and got great information.Thanks for an insightful post.These tips are really helpful.Thanks a lot.Keep it up.Keep blogging."!!
    mobile app development for android

    ReplyDelete
  64. great Nice information in this website ,thansks for sharing..!!! web design bangalore

    ReplyDelete
  65. Iphone application is now the most demand able work in development industry. Customer want new and latest apps for their iPhone.

    iPhone Apps Development Company

    ReplyDelete
  66. I don’t think it would be wise to force the user to upgrade an application since they have the freedom to select the type of application to use that meets their demands and requirements. It would rather be wise to allow the user to upgrade the applications at their own free will. For more interesting, captivating, and interesting blog articles, kindly hire the services offered by Qualitative Design Dissertation Writers.

    ReplyDelete
  67. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in IOS development, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on IOS development . We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com



    ReplyDelete
  68. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..
    please sharing like this information......
    Android training in chennai
    Ios training in chennai


    ReplyDelete
  69. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.
    Mobile App Development Company
    Mobile App Development Companies

    ReplyDelete
  70. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.. i am expecting more updated posts from your hands.
    Mobile App Development Company
    Mobile App Development Company
    Mobile app Development Companies

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

    iPhone Apps Development Company

    ReplyDelete
  72. You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant!
    sell used ipads

    ReplyDelete
  73. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete

  74. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    Android App Development Company

    ReplyDelete
  75. Thanks for sharing such a valuable information.This post is very useful for me.iPhone Apps Development Company

    ReplyDelete
  76. Awesome,
    Thank you so much for sharing such an awesome blog...
    iphone training classes in hyderabad

    ReplyDelete
  77. Thanks for sharing your fabulous idea. This blog is really very useful.iPhone Apps Development Company India

    ReplyDelete
  78. This information really worth saying, i think you are master of the content and thank you so much sharing that valuable information and get new skills after refer that post.
    IOS Training in Chennai

    ReplyDelete
  79. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  80. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    iOS App Development Company
    iOS App Development Company

    ReplyDelete
  81. I love to read your articles because your writing style is too good, it is very very helpful for all of us and I never get bored while reading your article because they become a more and more interesting from the starting lines until the end.
    Java Training in Chennai | Java Training Institute in Chennai

    ReplyDelete
  82. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    mobile application developers hyderabad

    ReplyDelete
  83. I wondered upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon.

    <Fitness SMS
    Fitness Text
    Salon SMS
    Salon Text
    Investor Relation SMS
    Investor Relation Text
    Mobile Marketing Services
    mobile marketing companies

    ReplyDelete
  84. Informative article, just what I was looking for. http://www.firstpageseoservice.com

    ReplyDelete
  85. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    ios App Development Company

    ReplyDelete