iOS Question Access own file with DocumentPickerViewController

angel_

Well-Known Member
Licensed User
Longtime User
I am trying to open a file (external) with own format (for example .abc) with my app through this code but when I access the file it is not available, is it posible with this way?


B4X:
Dim DocumentPicker As DocumentPickerViewController
DocumentPicker.InitializeImport("picker", Array("public.abc"))  'own format
DocumentPicker.Show(B4XPages.GetNativeParent(Me), lbl)
Wait For Picker_Complete (Success As Boolean, URLs As List)
If Success Then
    Log(URLs)
End If
 

angel_

Well-Known Member
Licensed User
Longtime User
How should the OS know that public.abc type matches your file?
I open the file from the app itself, with the json extension it works correctly but if it has another extension the file is not available and cannot be opened
 
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
I solved with this thread (great forum)

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…