Closed archie-wu-lb closed 6 months ago
Can you share how you solve this? I have the same problem. Tks!
It would help if you saw more detailed error messages. My situation is that some permissions of my project are not enabled.
It would help if you saw more detailed error messages. My situation is that some permissions of my project are not enabled.
@archie-wu-lb Do you mean in the app or on Google Cloud Console/Firebase Console? Could you please elaborate?
It would help if you saw more detailed error messages. My situation is that some permissions of my project are not enabled.
@archie-wu-lb Do you mean in the app or on Google Cloud Console/Firebase Console? Could you please elaborate?
In case it helps someone else with a similar issue.
In my case, the issue was with the Google Cloud configuration for the project. In the working prototype, I had enabled "Google Drive API' in the project settings in the Google Cloud dashboard. For the main app, I'd forgotten to do this. So the issue was from the react-native-google-signin
generating an access token without the necessary permissions (so to speak) of accessing Google Drive via react-native-cloud-storage
.
Once I enabled the Google Drive API for the main app, it started working as expected.
@timmyjose Yes, I also encountered the same problem. I didn't enable enough permissions in Firebase, but I saw the error message in the application itself. However, I remember the error message wasn't very complete. I found a related solution on Stack Overflow, but your approach should be correct. The Google Cloud Console/Firebase Console should have more detailed error messages, but at the time, I didn't have permission to view them.
I'm trying to write some data to Google Drive. When I was adding a new file, I encountered this issue. Uploading to iCloud on iOS works fine, but uploading to Google Drive on Android causes this issue.
This is my code When i call startSyncDataToCloud
I will get this error return Could not get file id for path