templewallet-mobile
templewallet-mobile copied to clipboard
TW-1208: [research] GoogleDrive for iOS
- TW-1208: [research] GoogleDrive for iOS. + react-native-google-drive-api-wrapper
- TW-1208: [research] GoogleDrive for iOS. + iOS support
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);
});