-
Notifications
You must be signed in to change notification settings - Fork 115
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
Proper return values #150
base: master
Are you sure you want to change the base?
Proper return values #150
Conversation
Change all the things
seems like this one was broken on iOS 14. |
Hi everybody, would it be possible to merge this please? |
Thanks for the PR @pikaju, and thanks for the reminder @sperochon ! Working great for iOS, tested on iOS simulator I however tested on an Android physical device and I'm getting an immediate result with value "cancelled" |
Yes, in the current implementation the result won't work, because So I am curios how the author of this PR tested changes on Android. Additionally, one more issue with implementation, even if we remove this intent flag is that when user uses Google Calendar app after adding an event user ends up on a home screen of the Google Calendar app and needs to use back (with either a swipe or click on the corresponding button), thus would still get |
Can we get this merged? What's the status |
@ja2375 could you have a look when you can please? It seems this PR is needed. |
Previously, the Futures returned by this package either never completed at all or completed instantly, which made them effectively useless. This PR adds an enum return type with values
success
when the user created the calendar event,canceled
when they aborted the creation, andpermissionDenied
when the lack of permission prevented the event creation. The returned Future only completes after the process is done.