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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T16:20:47+00:00 2026-06-18T16:20:47+00:00

I have registered for PDF document type so I can open mail attachments and

  • 0

I have registered for PDF document type so I can open mail attachments and PDF files viewed in Safari. The problem is that works fine if the application is closed. If the application is in the background. Safari/Mail switches to my App but my App didFinishLaunchingWithOptions function is not called which include the URL to the file. So I cannot access the file in that case.

Do I need to force the user to close the App before opening any document in Safari!

EDIT:
Here is my plist changes

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>PDF Document</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.content</string>
            <string>public.item</string>
            <string>public.data</string>
        </array>
    </dict>
</array>

I was messing with the values but public.content and public.item and public.data just register my App to open any content not just the PDF. still I need to close my App first!

  • 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-18T16:20:48+00:00Added an answer on June 18, 2026 at 4:20 pm

    @KDaker has pointed it out in the comments but the bottom line is that you need to implement these two functions in your Application delegate.

    - (BOOL) application:(UIApplication *)application handleOpenURL:(NSURL *)url;
    
    - (BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have registered my app to receive files (of any type, not just images)
I have registered an enumeration type ClefType within my header file - this enum
I have registered ProximityAlert in MapActivity. No problem with catching alerts in BroadcastReceiver and
I have registered incomingCall broadcast receiver, and it works fine, but I need receiver
I have registered a custom conversion service in a Spring 3 application. It works
On my site I have registered a keypress event handler for the whole document.
I have registered a domain in iPage.com. But recently i learnt that they are
In summary: I have a mysql db table that holds pdf objects. When a
I have registered a new content type in ServiceStack with: appHost.ContentTypeFilters.Register(application/x-my-content-type, SerializeToStream, DeserializeFromStream); And
Suppose that you have registered two TcpChannels in .NET Remoting. Then I try to

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.