Solution: https://www.b4x.com/android/forum/threads/open-local-files-with-external-apps.51941/#content
Using Erel's very helpful tutorial I was able to convert my Android .pdf creator code to ios in about half an hour.
Now I have spent 4 hours trying to figure out how to make it available so I can open it.
The goal is to make it easy for the user to create the pdf, open it, and print it if that option is available.
Installing Acrobat reader as the viewer/printer source is fine with me. I installed it hoping it would find my file but of course, did not.
I read this https://www.b4x.com/android/forum/threads/files-and-folders.46137/#content
I inserted this line:
in my app but no luck. I cannot find my file in iTunes.
I ran the sample app in the link above and it works as advertised, but it does not show up in the iTunes store anywhere that I can see. (I searched for 1.txt)
I know the file is there.
After creating it I run this code:
and get this result:
Also tried xui.DefaultFolder
I tried Both Debug mode and Release.
Does it have to be in the app store to work?
Any help and information is greatly appreciated.
Using Erel's very helpful tutorial I was able to convert my Android .pdf creator code to ios in about half an hour.
Now I have spent 4 hours trying to figure out how to make it available so I can open it.
The goal is to make it easy for the user to create the pdf, open it, and print it if that option is available.
Installing Acrobat reader as the viewer/printer source is fine with me. I installed it hoping it would find my file but of course, did not.
I read this https://www.b4x.com/android/forum/threads/files-and-folders.46137/#content
I inserted this line:
B4X:
#PlistExtra: <key>UIFileSharingEnabled</key><true/>
I ran the sample app in the link above and it works as advertised, but it does not show up in the iTunes store anywhere that I can see. (I searched for 1.txt)
I know the file is there.
After creating it I run this code:
B4X:
If File.Exists(File.DirDocuments, "Test1.pdf") Then
Log(File.DirDocuments)
Log("Exists")
Log(File.Size(File.DirDocuments, "Test1.pdf"))
Log(DateTime.Date(File.LastModified(File.DirDocuments, "Test1.pdf")) & " : " & DateTime.Time(File.LastModified(File.DirDocuments, "Test1.pdf")))
End If
B4X:
/var/mobile/Containers/Data/Application/B06A62FE-40E7-403E-B0A4-4AC15863DB6C/Documents/
Exists
184975
09/12/2020 : 13:59:44
Also tried xui.DefaultFolder
I tried Both Debug mode and Release.
Does it have to be in the app store to work?
Any help and information is greatly appreciated.
Last edited: