Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS creating multiple events issue #547

Open
priyaa05 opened this issue May 13, 2021 · 2 comments
Open

IOS creating multiple events issue #547

priyaa05 opened this issue May 13, 2021 · 2 comments

Comments

@priyaa05
Copy link

priyaa05 commented May 13, 2021

Hi,

We are using @ionic-native/calendar/ngx plugin to add events to calendar.

We have requirement to add multiple events like around repeated 3 times a day for three days. So total around 9 events to be created with one button click , this works fine in android.

But in IOS, it just crashes in between and after that any other clicks to 'add-to-calendar' for single events also doesn't work.

I use this code in a loop for multiple events.

if(this.platform.is('ios')) //Ios supports passing only calendar name
{
options = { calendarName: calName, firstReminderMinutes: this.firstReminderMinutes };
}
else{
options = { calendarId: calId, firstReminderMinutes: this.firstReminderMinutes };
}
let addEvent = await this.calendar.createEventWithOptions(this.eventName, this.site, null, startdate, enddate, options);

Thanks,
Priyanka

@lhrossi
Copy link

lhrossi commented Jun 24, 2022

Really similar issue here...

@nxz91
Copy link

nxz91 commented Jan 4, 2023

@priyaa05 have you been able to make this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants