The Gmail iOS API under the hood appears to be creating 'POST' requested with a payload that specifies an action. So for example if I want to get a single message by ID, I would expect (at least since the documentation on the API specifies it) that I would create a GET request with the correct URL schema. Instead the Gmail iOS implementation does not and utilizes more of an RPC approach. Unfortunately this means all POST requests have a default timeout of 240 seconds and cannot be changed, apparently an iOS bug/weird implementation. I can create a timer and cancel the request but why not make the implementation RESTful?
iOS Gmail API: Timeout interval and RPC vs RESTful implementation
306 Views Asked by yellowandy At
2
There are 2 best solutions below
0
grobbins
On
The library was written to create JSON-RPC requests because those have always supported a batch request model. A mechanism for batch REST requests was added much later to Google's JSON API servers.
The timeout issue on POSTs was resolved in iOS 6, according to discussions online like this.
The project site does have links to the library's discussion group and issue tracker.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in GMAIL-API
- If you're using the Google Oauth2 authentication method to send emails with Gmail API from *your* account, when do you need to refresh the token?
- Optimizing Gmail API Query or Alternative Method to Retrieve Total Email Size
- Google apps scripts, Way to reply to a email thread started by me but to a different email?
- Access Regular Gmail Account with API in Lambda
- GMAIl API: how to get messages without any prompting for authorization?
- Gmail OAuth2 Client Secrets and Multiple Users
- I'm getting different threading on sender and recipient side using gmail api
- Gmail "Layouts Tool" configurable via appscript?
- Google SMTP with App password suddenly stopped working March 19 2024
- What is the difference between App and add-on in Google marketplace?
- Gmail add-on compose trigger
- Send Emails via Gmail API in Python - HttpError 403 [{'message': 'Insufficient Permission'
- What are the exact HTTP requests to follow in order to log in to gmail without using any client libraries/solutions like SMTP
- ModuleNotFoundError: No module named 'google' with Python
- Gmail API drafts only?
Related Questions in GOOGLE-API-OBJC-CLIENT
- Decoding Gmail API downloaded attachment data
- How can I properly create / initiate a GTLRSheets_ValueRange update of Google Sheets?
- Concurrent task execution in ios swift
- In Xcode 9 / Swift 4 Google APIs Client Library for Objective-C for REST: threading notification not working
- GTLServiceCalendar change listener
- Google Drive Api V3 is not returning Web Content link after uploading a new file to Drive?
- Google Drive API for Objective-C return some file not all
- maxResult is not working when doing a tasks.tasklists.list
- feedback feature in ios using google spreadsheet
- How to extend permission scope GTMOAuth2ViewControllerTouch
- How do I use captions with GTLYouTubeVideoContentDetails and GTLYouTubeVideo?
- Google Calendar Resources iOS SDK
- Google OAuth for iOS
- Google Drive API (GTL) - Create multiple folder paths in order?
- Error Importing the Google Drive SDK using the Google API Objective-C Client in Xcode 6.1
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Yes, this is a quark with the Google iOS client libraries in general--they do not follow the standard REST semantics of the APIs like all the other client libraries use. I imagine due to some limitation in iOS. In any case, https://code.google.com/p/google-api-objectivec-client/ would be the best place to read more about it, discuss and file bugs. (Not specific to the gmail-api.)