I have been using the feature of preventing notification emails when transferring ownership of files using Google Drive Java API. It has worked nicely but now recently the notification started to appear. Has something changed why the API does not work anymore. Is there a way to block the emails in some other way or what to do here?
The code snippet looks like this, where I disable notification emails:
Insert insert = service.permissions().insert(fileId, newPerm); insert.setSendNotificationEmails(false); newPerm = insert.execute();
I have tested with AppEngine 1.9.4 & 1.9.5 and also several Drive API versions 1.16, 1.17 and also latest 1.18-rcAnswer1:
<strong>Update</strong>: This has now been fixed.
Yes, this is a change in behavior from a recent change push that is independent of API version. At this time there isn't any workaround that will let you both transfer ownership and not send an email.
The Drive SDK team is aware of it and are investigating how to put in a better solution right now. Unfortunately we can't give you an ETA yet.