0

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, Exported UTIs 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!

newszer
  • 440
  • 1
  • 4
  • 23
  • Read this example https://mobiforge.com/design-development/importing-exporting-documents-ios and see the list to confirm URI by Apple https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html – Gagan_iOS Jun 13 '17 at 07:11
  • Thank you for your help, I follow importing documents part and it works, but the code needs to be changed for my own case. – newszer Jun 14 '17 at 07:18
  • I think you can answer and I will accept it. – newszer Jun 14 '17 at 07:19
  • Ok I have added in answer. – Gagan_iOS Jun 14 '17 at 07:19

1 Answers1

1

Please follow example

Example

Also, see the list to confirm URI by Apple

URI list

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Gagan_iOS
  • 3,638
  • 3
  • 32
  • 51