TheAlmightyBob / Calendars

Cross-platform calendar API plugin for Xamarin and Windows
MIT License
101 stars 23 forks source link

Only Gmail is visible and other calendars like Outlook can't be read from Android #90

Open vikher opened 1 year ago

vikher commented 1 year ago

I use this plug in version 1.1.0 to add calendar functionality on both iOS and Android using Xamarin Forms. However only on iOS I can link other platforms like Gmail and Outlook doing this from the phone menu Go to Settings > Calendar> Accounts > Add Account

Screen Shot 2022-12-28 at 4 00 43 PM

The issue is that on Android I only see Gmail , even after trying to publish the calendar in outlook

    • Click on the Calendar icon to open Outlook Calendar (you can also click on the App loader button in the top-left, and select the Calendar app that way)
    • Open the Calendar Settings menu by clicking the cog icon (found in the top bar, on the right)
    • Select Options (at the bottom of the settings menu)
    • Click on the Calendar publishing option (found under Calendar > Shared Calendars)
    • Select the calendar you want to publish from the drop-down menu
    • Go to the section called Shows availability, titles and locations
    • Copy the ICS link
    • This is the link you need to paste into the application you want to share the calendar with
Screen Shot 2022-12-28 at 4 18 54 PM

Is this the normal API behavour or is there other configuration needed on the different platforms settings?

TheAlmightyBob commented 1 year ago

I'm not too familiar with using Outlook.com, nor is it quite clear to me what you're trying to do, but this note from the documentation seems like it might be relevant?

When sharing your calendar with someone who's not using Outlook on the web, for example, someone using Gmail, they'll only be able to accept the invitation using a Microsoft 365 or an Outlook.com account.

If you just want your own Outlook calendar to be available via the native Android Calendar (and thus via this API), I think you would instead want to add the account to the phone? (which looks like what you were doing on iOS?)

In which case these instructions may help.

vikher commented 1 year ago

Actually what worked for me was using these instructions to show an outlook calendar in google calendar, however the CanEditEvents property comes back as false for any calendar under the other category probably restricted by google on purpose but that would be outside the scope of this question

Screen Shot 2023-01-02 at 9 46 44 AM

WhatsApp Image 2023-01-02 at 09 59 18

TheAlmightyBob commented 1 year ago

Well, those instructions that you say you followed look like they are specifically for adding a read-only calendar, so I certainly wouldn't expect that to be editable. I'm assuming the Google Calendar app wouldn't let you add events to it either.

That said, I can't guarantee that adding an Exchange ActiveSync account would turn out differently... been too long since I've used that, can't remember if it was editable or not.