On server, each time the application sync it's programed to check if there
is an update/newer version, passing actual version to webservice and
receiving the "link" for download. So if you call this URL (that is the
plist with info about ipa file) , ios manages it with a message to user:
this website is trying to install an one application: install or cancel? So
if you tap install, ios closes the application and download/install the
newer. Document file (database) stay intact and changes only the
application.
var application = UIApplication.SharedApplication;
var url = NSUrl.FromString
(string.Format("itms-services://?action=download-manifest&url={0}",
UpdateUrl /* from webservice*/));
if (application.CanOpenUrl(url)) // don't know if t's needed
UIApplication.SharedApplication.OpenUrl(url);
This kind of link can be manually testes typing on safari it's like:
itms-services://?action=download-manifest&url=AdressOfThePlistFile
It could be more sophisticated, as to do an application manager as a second
application, and 2 application can interact, if you want to change
information about when and how exactly the application was updated, etc, or
manage more than one application. Actually we're not doing that, just self
update. don¹t'know the future yet.
Maybe on AppStore if there is a way to find where on apple serve is your
plist file, so maybe it can be accomplished too from appstore applications
Never put nothing yet on AppStore.
Karl
From: JamesLavery <[email protected]>
Date: Sun, 12 Feb 2012 05:11:42 -0800 (PST)
To: "[email protected]" <[email protected]>
Subject: Re: [MonoTouch] Enterprise deployment or free app?
Hi Karl,
Thanks, that's very useful.
Can you clarify your second option please? Are you saying that the
application updates itself from the web/server? In this case, do we in fact
have a launcher app which checks for updates and updates the main app if
necessary? I'm new to iOS development, so am not sure how this can be
achieved - can we programmatically install an app?
Or have I got the wrong end of the stick?
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Enterprise-deployment-or-free-app-tp4
381070p4381101.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch