Cannot find default calendar

On Android and I’m using the code below to get all calendars on the device but all calendars returned have isPrimary set to false. Is there another way to know which calendar is the default?

Would it be ok to use the accessLevel property? Here’s what the property is set in the 3 calendars returned:

  1. "accessLevel": "read"
  2. "accessLevel": "owner"
  3. "accessLevel": "read"

I’m guessing calendar #2 is the most appropriate with a value of owner but isPrimary is set to false for some reason.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.