Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6627345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:00:10+00:00 2026-05-25T22:00:10+00:00

Instead of using a web-service to get current application version number and comparing it

  • 0

Instead of using a web-service to get current application version number and comparing it in my code for popping up update alert, Is there any way to obtain the application version number from App-Store / i-Tunes directly?

After going through all the comments correct me if i am wrong.

  1. We should not show a Local Notification(as alert) to User regarding availability of new update programatically?

I went though HIG Guidelines, but could not fing such creteria. So little confused in deciding.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:00:11+00:00Added an answer on May 25, 2026 at 10:00 pm

    Alert updates like this will certainly be against Apple guidelines. For iOS devices, application alerts are displayed by the App store app with a badge displaying the number of updates available. There is nothing a developer needs to do.

    If you are worried about the user missing your app update, rest assured that iOS users keep an eye on the app-store app & know that all updates come through it.

    However, there are hacky ways by which you can figure out that this is your first run after an update without contacting any web service or iTunes/App store.

    One of the hacks known to me:

    Fetch the library directory path-

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
    NSString *libPath = ([paths count] > 0) ? [paths objectAtIndex:0] : nil;
    

    libPath would be something like – /var/mobile/Applications/8CFB747F-9446-44CB-98B9-C6FF1CF7BF93/Library

    This random string before /Library changes with every update. You can save this string in NSUserDefaults, and compare the path with the saved string on every launch. If the strings are found to be different, it implies that this is your first run after the update. Display the update alert! Then update the saved string with the new one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Instead of using $this->fetchAll('email = ?',$email)->current() inside the model class, is there a way
I am using windows authentication in a ASP.Net Web Application and in the code-behind
I´ve recently started looking a web service calls using PHP. I can´t get the
I'm using StringBuffer to send and receive variables from a web service. My code
I have a method that I call to make web service requests using GET.
Instead of using an external web-based Mercurial host, I want to set one up
When I use conditional breakpoint in VS2005 instead of using temporary code to check
Why do i get an error when I try using _ instead of using
I'm using Visual Studio 2010, and I've got a service reference to a web
I am implementing a WCF web service which interacts with a client whose code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.