Automatically point users at app store when update is ready?
I've seen this functionality before; an app update is available but maybe I haven't checked the appstore.app yet. At any rate the app say foo.app will prompt you while in app and say
"A new version for Foo.app is available! Want to goto the app store and download it?" (App Store) (Later)
Clicking app store takes you to the app store to download the new update, but effectively the app itself is aware of its own updates.
I'm assuming their app simply connects over a socket and pings their server or a simple script which replys with the current version which the developers maintain, then the app can determine if/when an update is avail and notify then.
Is this how this is done? Or is there a simple way w/o having to open an external facing http/other socket to a personal webserver...
I implemented something similar in my last app, but I did it "the very dumb way"... I have a web server, in that server I have in a specific directory a file (in my case it's a PDF File, which the App tells the user being ready to download, but it could be something else)
So, the App knows the name of the file at some point in time. By sending an http request to <myServer>/<myDirectory>/myscript.php, the scripts returns the contents of that directory. The App compares the name of the pdf in that directory with the name of it's local pdf file. If the name has changed, it prompts the user. Stupid, but easy, and it works.
The drawback is: The App is always doing that small http request to the php script in the server, but the user barely notices it, and the couple of bytes flying around are not a problem.
Don't know exactly how to implement it to redirecting to the AppStore, but it could be something similar.
I'm assuming their app simply connects over a socket and pings their server or a simple script which replys with the current version which the developers maintain, then the app can determine if/when an update is avail and notify then.