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

  • Home
  • SEARCH
  • 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 307985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:36:31+00:00 2026-05-12T07:36:31+00:00

Is there any way to run my app when the user taps on an

  • 0

Is there any way to run my app when the user taps on an e-mail attachment, so I can access the attached file?

What I want to do is implement some kind of backup / restore for app data:

  1. The user sends an e-mail with an attached data file that has a special extension (I will be using the new iPhone 3.0 message composer class)
  2. If the user loses his data, they will be able to go to their e-mail box and open the last e-mail they sent with the app data file
  3. Then they simply tap on the attached file, which causes my app to run and restore from that file

Is it technically possible to perform the last step?

Thanks

  • 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-12T07:36:32+00:00Added an answer on May 12, 2026 at 7:36 am

    Mobile Orchard has a great tutorial, describing how to restore your applications database through Custom URL handlers of a serialized SQL Lite database:
    Lite To Paid iPhone Application Data Migrations With Custom URL Handlers

    (paraphrased instructions from the article)

    1. Setup a custom URL handler in your project’s Info.plist Setup a custom URL handler http://www.mobileorchard.com/wp-content/uploads/2009/01/result.png
    2. In your email message convert your database or application data to NSData base64, and include it in a URL
      For example:

      [NSString stringWithFormat: @”myapplication://localhost/importDatabase?%@”,encodedStringData]

    3. Add a handleOpenURL method to your AppDelegate implementation

    Example AppDelegate Implementation:

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

    Mobile Orchard on File size limitations:

    We have transferred files of up to
    100k this way, and the size of a URL
    string is theoretically only limited
    by available memory. That said, this
    approach is most suitable for
    applications with small to medium size
    data transfer requirements. Best of
    all though, it can be easily used for
    SQLite databases, XML files, text
    files, or even extended to handled
    compressed archives.

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

Sidebar

Related Questions

Is there any way to run the .NET exe (of a winform app) in
Is there any way to save data obtained during app-run and afterwards use it
Is there any way I can run class files (i.e. with main as the
Is there any way to do this? E.g., if a user starts the app
Is there any way in Java where if I run my Java app in
Is there any way to run a Python script in Windows XP without a
Is there any way to run one same instance of JavaCcript(jQuery) on the server
I'm just wondering, is there any way to run Selenium tests on Android in
Is there any way I could run the following 'logical code' to actually work?
Is there any way to force wpf to run the value converter again on

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.