-
Notifications
You must be signed in to change notification settings - Fork 266
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
Unable to add events to calendar with plugin version 3.0.0 #152
Comments
I've setup an example repository here https://github.com/vondeetzen/dc_nosucherrormethod_example with a short tutorial how to reproduce the error. Ran into it a day before. When I'm running the example project (https://github.com/builttoroam/flutter_plugins/tree/develop/device_calendar/example) it works. Currenlty tested only on iOS 13 simulator (iPhone 11). So I'm currently assuming that there was a mistake while setting device_calendar up or I'm using the code wrong. Permission for the calendar were added in Running on macOS Catalina and Flutter
Exception thrown is
Looked at _parsePlatformExceptionAndUpdateResult<String>(e, res); For debugging purposes I've added a statement print('e = >$e< and res.success = >${res.isSuccess}< and res.data=>${res.data}<');
_parsePlatformExceptionAndUpdateResult<String>(e, res); before and got:
(linebreak was added by the print statement not by me). |
Small addition: 2.0.0 also does not work for me (same NoSuchMethodError issue). Everything working fine with 1.0.0+3. |
Thanks for the details @FedericoMatera, @vondeetzen. I've had a look and found out I didn't set I'll make sure to add this into next update, as a workaround for now, please set an empty string to the url property of the event: |
@FedericoMatera, @vondeetzen, a hotfix |
Hi @Brett09 ,
|
I created this PR: |
@FedericoMatera thank you for the patience and contribution. We'll get this reviewed (I've done an initial pass already and it looks good) and merged asap. |
Just updated to version 3.0.0 and I'm unable to save a new event.
Got this error message:
type 'NoSuchMethodError' is not a subtype of type 'Exception'
in DeviceCalendarPlugin.createOrUpdateEvent (package:device_calendar/src/device_calendar.dart:202:54)
The text was updated successfully, but these errors were encountered: