Is there a way to launch my application when a user clicks on an email attachment so that I can access the attached file?
What I want to do is implement backup / restore application data:
Is it technically possible to complete the last step?
thanks
Mobile Orchard has a great tutorial that describes how to restore an application database using custom URL handlers for a serialized SQL Lite database: Lite for paid iPhone application data migrations with custom URL handlers
(paraphrased instructions from the article)
In the email message, convert the database or application data to the NSData64 database and include it in the URL For example:
[NSString stringWithFormat: @ "myapplication://localhost/importDatabase?% @", encodedStringData]
handleOpenURL AppDelegate
AppDelegate:
#import "GTMBase64.h" - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { if([@"/importDatabase" isEqual:[url path]]) { NSString *query = [url query]; NSString *importUrlData = [GTMBase64 webSafeDecodeString:query]; // NOTE: In practice you will want to prompt the user to confirm before you overwrite their files! [importUrlData writeToFile:@"/path/to/FullApplication/Documents/file" atomically:YES]; return YES; } return NO; }
Orchard:
100k , URL- . , . , SQLite- , XML , .
, , URL, . :
http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html
, , URL, base64,
mycustomappbackup://[ ]
(Listomni) URL , . SQLite, . , , GMail Outlook, URL- 2048 .
, iPhone OS 3.0, , , , , , . Apple
Source: https://habr.com/ru/post/1713492/More articles:Attempting to access results / result set of SQL statement of EXQL server - sqlOverwrite query string with mod_rewrite - apacheByte Parsing (C Windows) - cNon-generated property in LINQ to SQL behavior - c #Can I install IIS 6 or 7 on a computer running Windows XP? - windows-xpModeling a directed graph with a special center node - mysqlSWT update / redraw / layout pruble - layoutNested RDLC Filtering Tables - reporting-servicesWhere should I store the source data and convenient methods? - objective-cКак заставить перерисовку содержимого ex-invisible group в SWT? - javaAll Articles