templewallet-mobile icon indicating copy to clipboard operation
templewallet-mobile copied to clipboard

TW-1208: [research] GoogleDrive for iOS

Open alex-tsx opened this issue 1 year ago • 1 comments

  • TW-1208: [research] GoogleDrive for iOS. + react-native-google-drive-api-wrapper
  • TW-1208: [research] GoogleDrive for iOS. + iOS support

alex-tsx avatar Dec 28 '23 23:12 alex-tsx

To see, how Google Drive on iOS works, you can try:

GoogleDriveAPI.requestSignInToCloud()
  .then(res => {
    console.log(1, res);

    return GoogleDriveAPI.doesCloudBackupExist();
  })
  .then(res => {
    console.log(2, res);

    return GoogleDriveAPI.fetchCloudBackup();
  })
  .then(res => {
    console.log(3, res);

    return GoogleDriveAPI.saveCloudBackup(
      'system key zone during luggage diagram robust ivory setup scrap stable heart',
      'Aaa@123'
    );
  })
  .then(res => {
    console.log(4, res);

    return GoogleDriveAPI.doesCloudBackupExist();
  })
  .then(res => {
    console.log(5, res);

    return GoogleDriveAPI.fetchCloudBackup();
  })
  .then(res => {
    console.log(6, res);
  })
  .catch(error => {
    console.error('E:', error);
  });

alex-tsx avatar Dec 28 '23 23:12 alex-tsx