Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoUpload Not Working With Google Play Version #14334

Open
4 tasks done
djlactose opened this issue Jan 7, 2025 · 21 comments
Open
4 tasks done

AutoUpload Not Working With Google Play Version #14334

djlactose opened this issue Jan 7, 2025 · 21 comments
Assignees
Labels

Comments

@djlactose
Copy link

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Since the last release I am unable to see any files on my device to upload into Nextcloud. It just shows all folders blank.

Expected behaviour

I should be able to upload any file on my phone to my Nextcloud instance.

Actual behaviour

It just shows no files in any folder I got into when trying to select what to upload.

Android version

15

Device brand and model

Pixel 8 pro

Stock or custom OS?

Stock

Nextcloud android app version

3.30.7

Nextcloud server version

30.0.4

Using a reverse proxy?

Yes

Android logs

data folder is blocked in android 15 unless you root the device

Server error logs

Additional information

No response

@Whisprin
Copy link

Whisprin commented Jan 8, 2025

Are you using the "+ button" and then "Upload files"?
Can you please navigate to a folder that contains photos and/or videos and check if those files show up?

And can you please try to use the "Upload content from other apps" option instead and report if that works? You can still browse local folders and files.

@djlactose
Copy link
Author

djlactose commented Jan 8, 2025 via email

@Daniel-MFG
Copy link

Hello there 👋

I seem to have the exactly same issue...

The interesting thing to note is that the folder shows up with the correct size but when i navigate inside there is only my testing "bump" file inside.
Image
Image

If i navigate to my music folders tho (containing .mp3 files) everything shows up as one would expect..
Image

i can also replicate this behavior with the "auto upload"-Feature...
If a folder contains Images, Music or files without any extension nextcloud will at least "find" them but otherwise not!
(might also work with some other file extensions but i didn't test every file extension possible for obvious reasons...)
Is there some wrong filter being used here?

What i also tested in the end is what would happen if i try to manually upload a file to a folder and then they correctly show up.
So this issue seems not to affect that feature.

This is a really big issue in my eyes as anyone who uses these features to back up anything besides images and music will not have their data backed up without noticing!
In my case for example i have lost my Signal Backups from the last couple of weeks...
(no error messages or anything..)
I only noticed this by chance as i wanted to delete some of the really old backups (cleaning up...)

@Whisprin
Copy link

Whisprin commented Jan 8, 2025

@Daniel-MFG Can you please try to use the "Upload content from other apps" option and report if that shows other file types? Manually selecting and uploading files should be working.

Image

I agree that the Auto uploads failing silently is a big issue as some users might notice this too late. Unfortunately, as of now this can't be fixed in the Google Play variant of the app. It still works in the F-Droid variant.

My suggestion is to send a push notification to all users to inform them that Auto uploads stopped working. That way users can actively look for alternatives instead of assuming that everything works as usual. See this summary here (1. problem): #14135 (comment)

@Daniel-MFG
Copy link

Daniel-MFG commented Jan 8, 2025

@Whisprin
When i use "Upload content from other apps" then it also shows the files correctly...

But i kinda mentioned that already:

What i also tested in the end is what would happen if i try to manually upload a file to a folder and then they correctly show up.
So this issue seems not to affect that feature.

Image

@alperozturk96 alperozturk96 changed the title Unable to see any files to upload AutoUpload Not Working With Gplay Variant Jan 10, 2025
@alperozturk96
Copy link
Collaborator

alperozturk96 commented Jan 10, 2025

Google Play version of our app no longer includes the android.permission.MANAGE_EXTERNAL_STORAGE permission due to repeated rejections by Google. While this issue did not arise in earlier versions, at some point, Google began rejecting the app for including this permission. Interestingly, some apps continue to have this permission and can still update without issues. Despite multiple attempts, we have been unable to pass their review, which has impacted the AutoUpload functionality of our app.

We are planning to inform users about this issue within app.

Edit: It seems that manually granting the necessary permissions is not feasible with the Google Play version. (Stock Android 15)

@Daniel-MFG
Copy link

Google Play version of our app no longer includes the android.permission.MANAGE_EXTERNAL_STORAGE permission due to repeated rejections by Google. While this issue did not arise in earlier versions, at some point, Google began rejecting the app for including this permission. Interestingly, some apps continue to have this permission and can still update without issues. Despite multiple attempts, we have been unable to pass their review, which has impacted the AutoUpload functionality of our app.

For users who prefer the Google Play version, they can try manually granting the necessary permissions. To do this, navigate to your device settings, select Apps, then Permission Manager, and choose Files and Media. Locate our app and enable Manage All Files permissions. Please note that the steps may vary slightly depending on the device.

If the issue persists after granting the necessary permissions, please provide us with the details through this issue. We are planning to inform users about this issue within app.

@alperozturk96 I am using a Google Pixel 7 Pro with the default rom (Android 15 - rooted) and here for example if i select the nextcloud app and manage it's permissions i only get the following (no permission for files/all files listed):
Image

And if i navigate to the system permissions manager ( Settings -> Security & Privacy -> Privacy -> Permission manager )
I can find the (presumably) correct permission and there is nothing in there...
Image

My guess is that with Android 15 no app shows up there if it never requests this permission?
(this is a pure guess to be honest)

@djlactose
Copy link
Author

djlactose commented Jan 10, 2025 via email

@Daniel-MFG
Copy link

I installed the F-Droid version now and while it did correctly download my music library to my phone again it STILL doesn't upload anything that isn't Photos/videos/Music...

The "Signal-Backup" folder essentially still looks like in my earlier post here:
#14334 (comment)

But i did get asked for the "all files" right and gave it to the app:
Image

@bjdev86
Copy link

bjdev86 commented Jan 14, 2025

I was able to get the clinent to upload media and non-media file types using F-Droid provided version 3.30.7.

@Daniel-MFG
Copy link

I just tested it with 3.30.7...
Despite nextcloud having the "all files" right on my pixel 7 Pro with rooted android 15 other files just will not show up if i set a folder up with the "two way sync" feature...

But yes as JUST a auto upload it seems to work again..

@bjdev86 could you maybe please try if it also doesn't work with the two way sync feature for you?

The auto upload is better than nothing (and is probably sufficient for most pure backup scenarios...) but is not sufficient if one wants to sync both ways of course...

Image

@alperozturk96
Copy link
Collaborator

I have noticed that multiple issues have been created regarding the same discussion. To ensure we address everything efficiently and maintain clarity, I kindly request that we consolidate all discussions under the main issue. May I also kindly ask for your assistance in closing this one?

@Daniel-MFG
Copy link

@alperozturk96 of course!

But the info on that "main issue" about the all files permission working on the F-droid version should be updated:
While it is correct the the permission itself still works there is still some issue with the "2 way sync" as that still doesn't upload all files...

I am currently testing combining the "2way sync" and the custom auto upload folder to this done correctly but i am not sure yet if that will produce some other undesirable effect..

@bjdev86
Copy link

bjdev86 commented Jan 14, 2025

@Daniel-MFG, I've read that the developers/maintainers are aware that Two-way sync does not work on the Android client.

Unfortunately, 2-way-sync, a.k.a bidirectional sync, isn’t fully implemented in the Android client yet. See this issue on GitHub for the current feature’s status.

https://docs.nextcloud.com/server/latest/user_manual/en/files/desktop_mobile_sync.html

Like you say it would be nice to have full two way sync like the desktop clients. Looks like that's in the works. For now I just use an A - B environment on my Nextcloud server where I have an archive directory and then the active directories which contain the current live data my phone is using/generating. This way my 256 GB phone harddrive isn't carrying around 157+ GBs of data (while adding to it). I like to keep my phone and desktop data separate though, just my preference.

@djlactose
Copy link
Author

djlactose commented Jan 14, 2025 via email

@bjdev86
Copy link

bjdev86 commented Jan 14, 2025

That's weird. Are you using the latest version on the client? (3.30.7) Have you already tried re-installing it multiple times?

@madejackson
Copy link

I was able to get the clinent to upload media and non-media file types using F-Droid provided version 3.30.7.

I can confirm this.

Play Store 3.30.7 --> no files shown
F-Droid 3.30.7 --> files shown

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Jan 15, 2025

This is handled via our next release, 3.30.8 RC1
It is currently in review and will be soon available for Beta users.
Please sign up to it, to check it and provide feedback.

Reasons can be found in #14409

@bjdev86
Copy link

bjdev86 commented Jan 16, 2025

I take it that 3.30.8 will be available in the Play Store as well as on F-Droid?

@marapavelka
Copy link

I have version 3.30.8 RC1 and auto uploadt still doesn't work . I have Photos and videos enabled in settings, but I don't have location permissions there.

@djlactose
Copy link
Author

djlactose commented Jan 16, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants