wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Android: Backup profile doesn´t work

Open otheATgh opened this issue 11 years ago • 3 comments

System: Android 4.4 Kitkat; app as an Apk

When pressing the backup profile and wallet buttons the notification appears that it was a success, however the blob doesn´t get saved.

I think the better solution for android would be to use cordova filetransfer and save the profile to the Documents or download folder, tho it would need android permission to write external storage.

While tracing the code i found no error but i was running out of time; it could be that there is no standart download location it could use to save the file where its accessible.

otheATgh avatar Dec 10 '14 22:12 otheATgh

I was able to reproduce this one. Working on it!

matiaspando avatar Dec 11 '14 14:12 matiaspando

I dont think that fixed the android backup problem, blob is supported by newer android versions so that was never the problem. but it doesnt allow us to save the file to an external storage and that is needed to 1) backup the file to an sdcard or whatever and 2) later import import the profile. If we just save the blob we cant access it as its written only inside the android app sandbox.

To do this i see only phonegap fileapi as a solution and we need to give copay rights to write to external storage.

http://docs.phonegap.com/en/3.0.0/cordova_file_file.md.html#File

otheATgh avatar Dec 12 '14 01:12 otheATgh

+1 on this: Opening: https://github.com/bitpay/copay/issues/2117

matiu avatar Dec 12 '14 03:12 matiu