[GH-ISSUE #223] Restoring topics or settings from backup doesn't work #180

Closed
opened 2026-05-07 00:21:07 +02:00 by BreizhHardware · 5 comments

Originally created by @shadow00 on GitHub (Apr 26, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/223

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).

Originally created by @shadow00 on GitHub (Apr 26, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/223 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).
Author
Owner

@binwiederhier commented on GitHub (Apr 26, 2022):

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

<!-- gh-comment-id:1109951135 --> @binwiederhier commented on GitHub (Apr 26, 2022): Must be a problem with an older Android version. I'll check it out. Thanks for reporting.
Author
Owner

@binwiederhier commented on GitHub (May 1, 2022):

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

image

<!-- gh-comment-id:1114311564 --> @binwiederhier commented on GitHub (May 1, 2022): I can reproduce this on a SDK 24 device. I hope there is an easy-ish solution: ![image](https://user-images.githubusercontent.com/664597/166160735-b2c99548-be1c-4d1e-845e-7955c9264164.png)
Author
Owner

@binwiederhier commented on GitHub (May 1, 2022):

solved in github.com/binwiederhier/ntfy-android@400f72a9bf -- Will be in next release

<!-- gh-comment-id:1114316985 --> @binwiederhier commented on GitHub (May 1, 2022): solved in https://github.com/binwiederhier/ntfy-android/commit/400f72a9bf2f51bad34f4e1a77fe9d65c80b801c -- Will be in next release
Author
Owner

@shadow00 commented on GitHub (May 1, 2022):

Well that was quick! :D

<!-- gh-comment-id:1114317469 --> @shadow00 commented on GitHub (May 1, 2022): Well that was quick! :D
Author
Owner

@binwiederhier commented on GitHub (May 1, 2022):

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...

<!-- gh-comment-id:1114318251 --> @binwiederhier commented on GitHub (May 1, 2022): 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 in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#180
No description provided.