Coder Social home page Coder Social logo

Comments (8)

MaikuB avatar MaikuB commented on July 17, 2024

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.

trap0f avatar trap0f commented on July 17, 2024

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.

trap0f avatar trap0f commented on July 17, 2024

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.

MaikuB avatar MaikuB commented on July 17, 2024

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.

trap0f avatar trap0f commented on July 17, 2024

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.

MaikuB avatar MaikuB commented on July 17, 2024

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.

MaikuB avatar MaikuB commented on July 17, 2024

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.

bhl09 avatar bhl09 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.