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 8941561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:20:01+00:00 2026-06-15T11:20:01+00:00

Is it possible to download and add a passbook from within a webview without

  • 0

Is it possible to download and add a passbook from within a webview without modifying the app to support the new MIME type or unknown MIME types like Sparrow did?

I have a news ios app with a webview. In the webview I display the news items and a banner. When you click the banner I want to open a url to a .pkpass file and add it to my passbook. Instead I get a FrameLoadInterrupted error and nothing visible happens.
If I open the url from safari this works fine, chrome, since earlier this week (version 23) also opens the url like intended.

Is this some weird strategy from Apple maybe? not allowing this MIME type to properly open from a webview?

  • 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-06-15T11:20:03+00:00Added an answer on June 15, 2026 at 11:20 am

    My best bet is that the UIWebView is just not capable of handling the Passbook passes. You could however try and catch the downloading in the UIWebViewDelegate method -(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType.

    What I mean to say is that you have to handle this part your self, since the http://passkit.com/samples/ I used does not return an url which ends pkpass thus it is totally depended on how you request the passbook files.

    If you do in include the .pkpass extension you can check for the extension in the request.

    If you know what kind of URL the passbook file is at you write your own download code here and pass it to passbook via the passbook api.


    There does not seem to be any great on fix for this, you could load the failed ULR in safari:

    - (void) webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
        NSLog(@"Webview: %@", error);
    
        if ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102) {
            NSString *failedURL = [error.userInfo objectForKey:NSURLErrorFailingURLStringErrorKey];
    
            if (failedURL == nil) {
                return;
            }
            NSURL *url = [NSURL URLWithString:failedURL];
    
            [[UIApplication sharedApplication] openURL:url];
        }
    }
    

    But this is just really bad coding.

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

Sidebar

Related Questions

Possible Duplicate: Download PDF from url and read it I have to download a
Is it possible to download php files from the server where they are located?
I would like to know if it's possible to download a file from a
I'm trying to add Mobclix Support into my app, and I don't want to
I need user download JPEG file from my app, however, when user change the
Is there any plan to make it possible to download (or synchronise from) a
In my application I download some xml data file from some information center, add
Does anyone know if it is possible to download the latest robocopy for Windows
I have a simple question Is it possible to download a specific resource file
I am creating a CMS and want to know if its possible to download

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.