简体   繁体   中英

Google Drive API quotas when access using Google Play services?

I understand we have Drive API quotas when we use web apps

is there any quota if we use Android Google Play Services Drive API?

How do i increase this?

Background:

My app uses google drive to sync app data between devices, so as soon as user initialize a device he will setup another device, for sync to happen immediately I use requestSync.

 Drive.DriveApi.requestSync(gClient).await(TIMEOUT, TimeUnit.SECONDS);

Frequently i get sync issues due to requestSync failure with error

Sync request rate limit exceeded

Drive API allows a free quota of 10,000,000 requests/day. However, this figure only represents the per day Quota available to a developer. You could be hitting rate limit errors because you are hitting the requests/second number which is by default 10.

To change the Requests/User/Second rate, you need to log into your Developer Console and change the number. However, implementing Exponential Back-off algorithm will be much more advisable than setting your App's per second quota limit to a higher number. From Developer's console, you can also request additional quota in case you have Exponential Back-off algorithm in place to handle your rate limit errors and are hitting the quota limits per day.

For information on why quota limits are in place, please refer to this link .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM