In iOS, How do other applications write PPT files into the inbox path of their own sandbox? - ios

I have a requirement now, and I want to display a PPT file in my app using WebView. However, this PPT file is downloaded from other applications,When I click "open from other applications" button in other app,select own app and click Import the PPT file.Then jump to my app interface. After that, I saw this PPT file in my app sandbox/Inbox path. I want to know how this file is passed into my application sandbox? Is that perform any method? I need to intercept this process and do something.Can someone help me?

Your App Delegate is called with the URL of the sanbox/Inbox file.
See:
https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623112-application

Related

iOS open pdf use my own app setting does not work

I am developing an iOS app for pdf view, I want that when user open an email(I use gmail for test) attachment pdf file then there will be a menu like "open in" include my app, I follow this guide ios adding a custom type and this is my setting, , I rebuild my project and open the gmail attachment pdf file,when I touch and hold it shows nothing, and I single tap the attachment icon it will be opened by a default app, not my app, so I don't know what's wrong. Are there any mistake in my setting or my test device has setted the defalut application to open pdf files? If so how can I change it? Thank you!
Please follow example
Example
Also, see the list to confirm URI by Apple
URI list

How to make app intent for iOS app to download pdf externally?

I have wrapper app with some buttons to generate PDFs.
I would like to download PDF files to be opened by Adobe, now when I click on the button it open it within the app which make it unable to get back and I have to force closing the app.

is there any way to select downloaded file from file explorer in IOS?

I need to select the file which is downloaded through mail. That text document need to be loaded into my app.
Is there any chance to do?
Apps on iOS are sandboxed, so they can not access any files outside of there own sandbox.
There is no user accessible file system thus you can not select a file that is downloaded through mail.
There is the option to allow your app to open files, by extension. You register your to, for example open txt files. Then when you have a txt file in your mail you wil be prompt that you can open the file in your app.
You can find all you need in this Apple document: Registering the File Types Your App Supports
Only if declare that your application can handle that document type then the user will get the chance to open the file with your app When they select from the mail app. This will call delegate method from you app where you can do with the file as you wish.
First you need to declare to the iOS system that your application can handle that file type.
you do this by adding by adding key:values to your applications-info.plist
This guide is what you need to follow
http://mobiforge.com/design-development/importing-exporting-documents-ios
scroll down to the part
Importing Documents

How to open excel, doc from ms-word or ms-excel in iOS

In my application I download doc and excel files and I want user to open them from MS Word, MS Excel application available for iPad. I don't want these files to be opened in web view but wants to open in MS word or excel in the same way like after long press in my Mail app I get option to open document from different application.
I have attached the screenshot of what I want to achieve.
Please let me know the way I can achieve it.
You can make use of the QuickLook Framework Available for iOS. Here is a great tutorial for that

PDF File Editing and Read Editable file in iOS?

I have a problem that PDF file editing . From my app, when an OpenIn menu is shown, I'll choose an application to open the file PDF Expert in iphone device( ex:UIDocumentInteractionController to share with PDF Expert) and the PDF file is opened for edit in PDF Expert. But after editing, how can I send it back to my app or get the link where that editable PDF is saved ? How can I get this file?
You can't, unless you app registers it self that it can also open PDF file. Then if PDF Expert has an option the open the file in an other app the user will be able to open it your again.
There is not build in feature in the iOS SDK that lets you get a file from an other app.

Resources