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

TW-1208: [research] GoogleDrive for iOS #1008

Draft
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

alex-tsx
Copy link
Collaborator

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

@alex-tsx
Copy link
Collaborator Author

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);
  });

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

Successfully merging this pull request may close these issues.

1 participant