Open ImranR98 opened 11 months ago
Yo @ImranR98, thanks for brining issue to my attention. I tested it on both Android and iOS and it seems only text file are not being shared due to some bug.
Will fix it after I get some free time.
@ImranR98, hi can you try adding below code in the AndroidManifest.xml
file and see if it works on Android?
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
I cannot seem to get any solution for iOS yet.
Sharing .csv file as file, from Files App, doesn't work on iOS as well, works on Android.
@pingdong from ShareViewController.swift inside handleFiles method change newPath with:
let newPath = FileManager.default .containerURL(forSecurityApplicationGroupIdentifier: this.appGroupId)! .appendingPathComponent(" \ (fileName) " ) //space added to avoid github format
this should append the file correctly and it should work. In my case solved problem with json files
@ultormagister thanks for help, unfortunately, it doesn't work.
Here is the log
2024-04-08 21:50:30.590267+1200 File Uploader[7189:919692] [core] SLComposeServiceViewController got NSURL file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/Downloads/test%202.txt for public.file-url error: (null)
2024-04-08 21:50:30.646189+1200 File Uploader[7189:919491] [core] SLComposeServiceViewController got attachment coarseType 0
2024-04-08 21:50:30.646325+1200 File Uploader[7189:919491] [core] SLComposeServiceViewController made no attachment for itemProvider conforming to public.file-url
2024-04-08 21:50:30.881340+1200 File Uploader[7189:919491] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2024-04-08 21:50:30.883238+1200 File Uploader[7189:919491] [MC] Reading from public effective user settings.
2024-04-08 21:50:31.672428+1200 File Uploader[7189:919491] [Common] _BSMachError: port 7903; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
[ERROR] Error loading data!
2024-04-08 21:50:31.837708+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.838322+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.838525+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.838984+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.958461+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.958660+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.994617+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:31.994787+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:32.010750+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:32.010942+1200 File Uploader[7189:919697] [Assert] Cannot be called with asCopy = NO on non-main thread.
2024-04-08 21:50:32.022697+1200 File Uploader[7189:919697] [Animation] +[UIView setAnimationsEnabled:] being called from a background thread. Performing any operation from a background thread on UIView or a subclass is not supported and may result in unexpected and insidious behavior. trace=(
0 UIKitCore 0x00000001c86e17f0
Seems like the plugin tries to interpret
.txt
files as normal shared text, so the content is null.You can reproduce this using the share menu in the Markor app. Try creating a test file then using Share -> File.