UIwebview filetype on clicking - ios

I have a link containing excel file in gmail which i open in safari browser of ios device .
I want to open my application when i click on the link and download that file to the application document directory .
is it possible ?
if so please help me.

you should register the supported type with ios, in your case a excel file
read more # https://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/RegisteringtheFileTypesYourAppSupports.html#//apple_ref/doc/uid/TP40010411-SW1

Related

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

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

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

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

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.

File explorer in iOS app

I'm making a video decoder application on Xcode 4.2. When I click on a button I need the file explorer to open so that I can choose the appropriate file to decode.
How do I give this file explorer option in my app?
There no such thing like file explorer in iOS .So you cant browse through the files in the iOS .At the most you can access the camera roll . Apple doesnt allow to access the other things like songs,other file etc

Resources