marcick Well-Known Member Licensed User Longtime User Jan 16, 2023 #1 The question has been already posted here but the solution does not work for me. I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.content")) DocumentPicker.Show(pg, Sender) Running on Iphone 6 IOS 12.5.6 Any hint ?
The question has been already posted here but the solution does not work for me. I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.content")) DocumentPicker.Show(pg, Sender) Running on Iphone 6 IOS 12.5.6 Any hint ?
Alexander Stolte Expert Licensed User Longtime User Jan 16, 2023 #2 marcick said: Any hint ? Click to expand... try public.data thats working for my db backups B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.data")) DocumentPicker.Show(B4XPages.GetNativeParent(Me), xsbtn_restore.mBase) Wait For Picker_Complete (Success As Boolean, URLs As List) Upvote 0
marcick said: Any hint ? Click to expand... try public.data thats working for my db backups B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.data")) DocumentPicker.Show(B4XPages.GetNativeParent(Me), xsbtn_restore.mBase) Wait For Picker_Complete (Success As Boolean, URLs As List)
marcick Well-Known Member Licensed User Longtime User Jan 16, 2023 #3 Thank you but as I wrote, "I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable" Upvote 0
Thank you but as I wrote, "I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable"
Alexander Stolte Expert Licensed User Longtime User Jan 16, 2023 #4 try it togehter with: Make your app files accessible with Files app #PlistExtra: LSSupportsOpeningDocumentsInPlaceUIFileSharingEnabled All files in File.DirDocuments / XUI.DefaultFolder will be accessible from the Files app (and iTunes as well). www.b4x.com Upvote 0
try it togehter with: Make your app files accessible with Files app #PlistExtra: LSSupportsOpeningDocumentsInPlaceUIFileSharingEnabled All files in File.DirDocuments / XUI.DefaultFolder will be accessible from the Files app (and iTunes as well). www.b4x.com
marcick Well-Known Member Licensed User Longtime User Jan 16, 2023 #5 nothing, doesn't work .... (anyway I don't want file.dirdocument be accessible from file app) I can see and select other files (as text or csv) but not the.db Upvote 0
nothing, doesn't work .... (anyway I don't want file.dirdocument be accessible from file app) I can see and select other files (as text or csv) but not the.db
jahswant Well-Known Member Licensed User Longtime User Jan 16, 2023 #6 marcick said: I can see and select other files (as text or csv) but not the.db Click to expand... Defining file and data types for your app | Apple Developer Documentation Declare uniform type identifiers to support your app’s proprietary data formats. developer.apple.com database | Apple Developer Documentation A base type that represents a database store. developer.apple.com Upvote 0
marcick said: I can see and select other files (as text or csv) but not the.db Click to expand... Defining file and data types for your app | Apple Developer Documentation Declare uniform type identifiers to support your app’s proprietary data formats. developer.apple.com database | Apple Developer Documentation A base type that represents a database store. developer.apple.com
jahswant Well-Known Member Licensed User Longtime User Jan 16, 2023 #7 marcick said: I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable Click to expand... The identifier for this type is public.database. Upvote 0
marcick said: I checked with "public.database", "public.data" and "public.contents" but the .db files are grayed not selectable Click to expand... The identifier for this type is public.database.
marcick Well-Known Member Licensed User Longtime User Jan 16, 2023 #8 jahswant said: The identifier for this type is public.database. Click to expand... read the question before post an answer ? Upvote 0
jahswant said: The identifier for this type is public.database. Click to expand... read the question before post an answer ?
Alexander Stolte Expert Licensed User Longtime User Jan 16, 2023 #9 Alexander Stolte said: try public.data thats working for my db backups B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.data")) DocumentPicker.Show(B4XPages.GetNativeParent(Me), xsbtn_restore.mBase) Wait For Picker_Complete (Success As Boolean, URLs As List) Click to expand... My solution works! Look in the example project. IOS 16.2 marcick said: Running on Iphone 6 IOS 12.5.6 Click to expand... i see, you are using an very old version of ios... It is a version with a current security update. But from version 12-16 has done a lot to IOS, I think that is the error. Attachments test.zip test.zip 3 KB · Views: 448 Upvote 0
Alexander Stolte said: try public.data thats working for my db backups B4X: Dim DocumentPicker As DocumentPickerViewController DocumentPicker.InitializeImport("picker", Array("public.data")) DocumentPicker.Show(B4XPages.GetNativeParent(Me), xsbtn_restore.mBase) Wait For Picker_Complete (Success As Boolean, URLs As List) Click to expand... My solution works! Look in the example project. IOS 16.2 marcick said: Running on Iphone 6 IOS 12.5.6 Click to expand... i see, you are using an very old version of ios... It is a version with a current security update. But from version 12-16 has done a lot to IOS, I think that is the error.
marcick Well-Known Member Licensed User Longtime User Jan 16, 2023 #10 Alexander Stolte said: i see, you are using an very old version of ios... It is a version with a current security update. But from version 12-16 has done a lot to IOS, I think that is the error. Click to expand... Yes, that is the problem ... tested now on another Iphone12 and works fine as you say. I'm using this Iphone6 for developing and it's a good device, I don't want to limit my app excluding IOS12. The latest IOS version available for this device is 12.5.6 So, what to do ? Maybe I can change the file extension creating a custom identifier ? Thanks Upvote 0
Alexander Stolte said: i see, you are using an very old version of ios... It is a version with a current security update. But from version 12-16 has done a lot to IOS, I think that is the error. Click to expand... Yes, that is the problem ... tested now on another Iphone12 and works fine as you say. I'm using this Iphone6 for developing and it's a good device, I don't want to limit my app excluding IOS12. The latest IOS version available for this device is 12.5.6 So, what to do ? Maybe I can change the file extension creating a custom identifier ? Thanks