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

Restoring topics or settings from backup doesn't work #223

Closed
shadow00 opened this issue Apr 26, 2022 · 5 comments
Closed

Restoring topics or settings from backup doesn't work #223

shadow00 opened this issue Apr 26, 2022 · 5 comments
Labels
android-app ntfy Android app 🪲 bug Something isn't working in-progress 🏃 I'm working on this right now

Comments

@shadow00
Copy link

Just tried to backup and restore the topics and settings from the app (v1.11.0 from F-Droid) on an Android 8.1 device. The backup worked fine (even though the app didn't have storage permissions?), but restoring from backup doesn't work because the system's file picker doesn't allow selecting any file (even after giving the app the storage permission and making a new backup).

@binwiederhier binwiederhier added 🪲 bug Something isn't working android-app ntfy Android app labels Apr 26, 2022
@binwiederhier
Copy link
Owner

binwiederhier commented Apr 26, 2022

Must be a problem with an older Android version. I'll check it out. Thanks for reporting.

@binwiederhier binwiederhier added the in-progress 🏃 I'm working on this right now label May 1, 2022
@binwiederhier
Copy link
Owner

I can reproduce this on a SDK 24 device. I hope there is an easy-ish solution:

image

@binwiederhier
Copy link
Owner

solved in binwiederhier/ntfy-android@400f72a -- Will be in next release

@shadow00
Copy link
Author

shadow00 commented May 1, 2022

Well that was quick! :D

@binwiederhier
Copy link
Owner

For some bugs there are very pragmatic solutions. I think newer Android versions automatically detect the mime type, which is why it worked on newer versions. I can set the mime type on write, but then it's unclear what happens when you copy the backup file from somewhere else. So the pragmatic approach is to just allow selecting any file...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-app ntfy Android app 🪲 bug Something isn't working in-progress 🏃 I'm working on this right now
Projects
None yet
Development

No branches or pull requests

2 participants