[Calendar Plugin] Create event on Google Calendar when there's no native calendar

Forge Component
(2)
Published on 2 Jun by OutSystems R&D
2 votes
Published on 2 Jun by OutSystems R&D

Hi,

I am using Calendar Plugin to create events and it creates on iOS and Android, but in Android just create on devices that have a native calendar. The ones that don't have a native calendar and just have the Google Calendar (OnePlus for instance), the plugin can't create. Can anyone help please?


Thanks,

Rui Sousa

Hello,

Are you using the latest version of the plugin? This version has some fixes related to event creation.

The Android system cannot create an event unless a specific calendar is chosen. Regarding the Calendar Plugin, if no calendar is provided in the actions that create events, these actions will fetch the calendar list of the device and choose the first primary calendar they find.

If updating the plugin does not solve your issue you can provide the calendar you want to use to the event creation actions as an input parameter. You have access to an action that lists calendars. You can implement any selection logic you want or create a selection widget to choose a calendar based on said list.

Keep in mind that all of this is only required and available for Android. In iOS these parameters are ignored. iOS will work seamlessly even with the Android logic implemented. But if you implement any widget for calendar selection you should only show it in Android.

Best regards,
Nuno Azevedo