EddyVerbruggen / Calendar-PhoneGap-Plugin

:date: Cordova plugin to Create, Change, Delete and Find Events in the native Calendar
774 stars 403 forks source link

CreateEvent returns true instead of ID #533

Open Fir3st opened 3 years ago

Fir3st commented 3 years ago

Platform: Android Version: 10

Hi,

I'm trying to create events in a loop and then save their IDs. The problem is plugin sometimes returns true instead of the event's ID. I tried @ionic-native/calendar wrapper, I tried native-calender-api, I tried to make my own callback async wrapper (with promise), but the behavior is the same all the time. With logging, I've found that the plugin's response is printed after my log in the app, so I assume this is the problem (the event is created after the callback is sent), but how could I prevent that?