My app is PDF Reader and i want to support Open in feature like when open PDF in Safari , We can open PDF in another PDF Reader app with Open in Feature.
So my app support for (.PDF) file and want to show my app on the lists of Open in App like following pic.
I don't know what is that and how to use it?
Please explain or guide me to good tutorials.
Sorry if my question is duplicated.
It's very simple, you only need to register the file types that your app supports. You can check more on
https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1
Related
I'm trying to create a link that, if clicked on a mobile device (ios), will open a PDF in a FileExplorer mobile app (or the App store if they don't have one installed). I've tried finding apps with their own URL scheme (similar to Facebook's "fb://" or YouTube's "youtube://"), but I'm not having any luck.
I've reviewed the content in the following pages and still have not found an answer:
iPhone apps: Can I open an app from a link in a website?
How to open ios app using url?
Opening an app from URL schema
There is the option to open the Files app at a specific location using the shareddocuments:// URL scheme, as described in this article.
There's no direct solution. Your best best is to let the user decide what to do with the PDF. Use a UIActivityViewController setup with the PDF. Then the user can choose. Typical options will be email, print, iBooks, Preview, other apps that handle PDFs, and as of iOS 11, the standard Files app.
You are not going to find URL schemes for "file explorer" apps in general. And there's little point to finding URL schemes to a few specific such apps. Any such apps the user may already have should appear in the activity view.
I have an app that I'm using to create a custom PDF document (containing an image). I'm using my app the save the PDF into iBooks. I would like to be able to later access iBooks and get a copy of the document again.
I know that because of sandboxing, you used to not be able to load documents from iBooks into my iOS app. However, you weren't able to open PDFs with iBooks before and now you are - so is there a workout around for picking my own PDFs out of iBooks and loading them back into the app?
If not, how would I go about doing this? Are there examples or tutorials somewhere? (I'd like to select my own previously-saved pdf, from the same app, from iBooks like I'm able to select an image from the photo roll)
thank you!
iBooks are developed using iBooks Author, not Xcode. In addition, iBooks are for use with the iBooks application that is available for newer versions of iOS. They are not meant to be used within an iOS application.
So, sorry for the sad news. You can not integrate iBooks with your iOS apps.
I am trying to open pdfs in my application using ibooks but i could not find any solution for this. I am using Appcelerator for this. Please share code with me.
You can either use the DocumentViewear (http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.DocumentViewer)
or a Webview to display a PDF.
When you have opened the PDF in the DocumentViewer the user can decide
With the action button to open the PDF in the reader he wants.
To open other apps you you have to use URL schemes
(http://wiki.akosma.com/IPhone_URL_Schemes#iBooks):
Titanium.Platform.openURL('ibooks://');
I have an app that downloads files that need to be edited and submitted back to the server through the app. These files could be anything, but are most likely to be .docs. I want to be able to open and edit these files in another app on the device, such as a .doc editor.
I've been able to get this functionality to work in similar Android and Chrome apps, but I'm very new to iOS so I'm not sure what my options are.
Is there a way to give permission for another app to edit a file that is in my app's sandbox? If not, is there a way to get the file back for submittal (like finding it through a file explorer launched through my app - similar to an 'Open..." file explorer dialog used in Windows/Mac OS/Chrome)? Am I going to have to create a way for the editor app to share the edited file back to my app?
Thanks in advance for your help!
To manage the file and the paths take a look at the documentation for NSFileManager:
https://developer.apple.com/LIBRARY/mac/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html
I usually write using NSFileHandle for reading and writing:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/Reference/Reference.html
Hope this helps.
iOS8 will provide methods to allow apps to co-operate with "extensions".
See "Creating Extensions for iOS and OS X, Part 1 & 2` in the WWDC14 videos.
Also see the Apple "App Extension Programming Guide".
I ended up sending the file to a 3rd party app for editing and then sending the file back from the 3rd app to my app.
I am making an AIR for iOS app that can download pdfs. I do not want to display the pdf in the app itself but want the default pdf-viewer (iBooks) to launch and show the pdf. How can this be done.
I am aware that navigateToURL can be used to open a file with the uri scheme of iBooks. But i dont know how to tell iBooks to look in the app-directory of my app. (Or is there some secret directory to place the file in from within the app - where iBooks can find it)
I have a hard time figuring out what the expected behavior should be. I can open iBooks from the app, but where should i place the file so that iBooks can get to it?
Any pointers or help would be greatly appreciated as this is somewhat of a show stopper.
If simple navigateToURL won't work as expected, I'd suggest you to look at AIR Native Extensions (ANE) and UIDocumentInteractionController (+ blog post).
Try this library
http://code.google.com/p/pavo/
I haven't used it personally. It this works you will be able to extract text / content and render back in flash / flex application.