Comments (8)
Please elaborate on what you mean by measures. We haven't seen any differences in the code between the versions you've tried that would affect the number of events retrieved. We've also tried adding an outlook.com account to both an Android and iOS device that had two events in the calendar. Upon running the example app, it showed that there were two events on both devices so from what we can see, it is working as expected. Please provide steps to reproduce the problem if you're seeing an issue
from device_calendar.
Thank you for checking.
The situation has now improved.
My situation was as follows.
•App
device_calendar 0.2.1+1
flutter_plugins/device_calendar/example/
•Calendar
Google Calendar
(iOS: Settings > Passwords & Accounts > Add Account > Google)
•Event (All day: No)
8/6/2019 1:30 PM - 2:00 PM event1
8/6/2019 3:30 PM - 5:30 PM event2
•Emulator / Simulator
Android: Pixel 3 XL API 28 Android 9.0
iOS: iPhone Xs Max & iPhone 7 iOS 12.4
•Result
Android: event1, event2
iOS: event2
I changed my iOS language setting (Japanese -> English -> Japanese) and now it works fine.
iOS: event1, event2
I don't know the reason, but it seems to be my environmental problem.
I’m sorry for causing you trouble.
from device_calendar.
It's a guess.
EventKit may not have updated the synchronization.
Is there the following processing?
refreshSourcesIfNecessary ()
https://developer.apple.com/documentation/eventkit/ekeventstore/1507421-refreshsourcesifnecessary
from device_calendar.
may well be, since you seem to have more luck with reproducing the issue, would you be able to debug and see if that solves it and submit a PR?
from device_calendar.
I would like to do so if I could reproduce the event.
But I don't know when I can reproduce it.
At the same time, would you consider adopting 'refreshSourcesIfNecessary()'?
from device_calendar.
Yes but would need to be able validate it works by reproducing the appropriates scenarios. As you say, right now it's only a guess and there could be other factors at play
from device_calendar.
Just a note here that I've tried adding an event through an outlook.com account, called retrieveEvents
and the new event was part of the result even without adding refreshSourcesIfNecessary
in the iOS code. Wonder if perhaps you're calling retrieveEvents
as part of initState
method of the stateful widget that represents a page in your application. If that's the case, note that initState
isn't invoked when going to back to that page.
from device_calendar.
With the latest release (v3.0.0), haven't noticed such issue. As this ticket is outdated, I'm going to close this. Feel free to open a new ticket if you still experience the issue with the latest release.
Please note that there are few breaking changes in newer versions so make sure to follow the changelogs and examples at pub.dev (https://pub.dev/packages/device_calendar) when you're upgrading the plugin.
from device_calendar.
Related Issues (20)
- Android build is failed for Kotlin 1.7.10 because of enum switch in 4.3.0 version HOT 5
- Support for populating the event editor or the device? HOT 4
- Obsolete flutter_native_timezone dependency in feat/macos-support branch HOT 10
- CalendarDelegate.kt Compile Error with Flutter 3.7.6 • channel stable HOT 4
- createCalendar function does not working correctly for iOS HOT 1
- Event not getting created in samsung device HOT 2
- Windows support HOT 1
- Get Permission Status HOT 1
- Change of time set event to 'all day' causes error HOT 2
- Resaving an allDay event causes error HOT 2
- Android Gradle Plugin 7.3 incompatible with device_calendar due to a transitive dependency flutter_native_timezone HOT 21
- Calendar attributes from retrieveCalendars() only present in debug mode HOT 1
- ios flutter: PlatformException(401, The user has not allowed this application to modify their calendar(s), null, null) HOT 10
- add new calendar as read only HOT 1
- iOS 17 PlatformException(500, That account does not allow calendars to be added or removed., null, null) HOT 26
- Add equality to Calendar object HOT 2
- Creating duplicate calendars HOT 1
- Don't create any calendar when calling the instance of the plugin
- INVOKE_CHANNEL_METHOD_ERROR: PlatformException(401, The user has not allowed this application to modify their calendar(s), null, null) HOT 1
- Consider switching to flutter_timezone HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from device_calendar.