Is there a way to track changes on a Google Document / Spreadsheet?
When using
file.getModifiedDate()
the value does not properly reflect the latest changes on a document.
It sometimes takes many minutes until the file gets a new modification date when a user edits the content of the doc.
Is there a way to track all changes on a document no matter who did the changes?
You should use the Changes feed to detect changes to files: https://developers.google.com/drive/manage-changes.
It doesn’t allow filtering on a specific file, but each entry in the feed will have a
fileIdproperty to associate the change with a file.