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?
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?