question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after saving event it disappear form calendar ios

See original GitHub issue

Description first have created an event with the title, end time and start time and when I save the event it got saved in the calendar but after a few mins it got removed from the calendar and this happen only in ios. android is working perfectly

current version

"react": "^16.2.0",
"react-native": "^0.52.0",
"react-native-calendar-events": "^1.5.0"

i have called RNCalendarEvents.authorizeEventStore() before saving event

RNCalendarEvents.saveEvent(eventConfig.title,eventConfig).then((e,f)=>{
         ...
 }).catch((e)=>{
      alert(e)
  })

observation event added successfully and removed after a while

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
jonWilsonCopartcommented, Jun 6, 2018

@victormolema My QA team is reporting the same thing, event is disappearing after a few minutes and it’s showing up as a birthday. (Android only)

6reactions
abhichourasiacommented, Jun 15, 2018

@jonWilsonCopart I got a solution for this issue. I did below and it worked fine for me on Android. I am checking for primary calendar. See below:

const calendars = await RNCalendarEvents.findCalendars();
const primaryCalendar = calendars.find(c => c.isPrimary && c.allowsModifications);

if (!primaryCalendar) { return; }

RNCalendarEvents.saveEvent('Call User', {
    calendarId: primaryCalendar.id
    notes: 'Test Note',
    description: 'Test Note',
    startDate: <start date>,
    endDate: <end date>,
    alarms: [ { date: 5 } ]
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

iPhone Calendar Events Disappear - How to Get Back - iMobie
You may not know that the missing data is just temporarily gone and become invisible on your iPhone, go to Calendars > Tap...
Read more >
iPhone Calendar Events Disappeared? 4 Tips Offered - iMyFone
3. Check Network Connection. Another thing you could make sure of when your calendar events disappeared on iPhone is checking the network ...
Read more >
How to Stop iPhone Appointments From Disappearing
To prevent this from happening, launch "Settings" on the iPhone; select "Mail, Contacts, Calendars," and then scroll to the bottom and select "Sync."...
Read more >
Restore your calendars and events on iCloud.com
You can restore your calendars and events (along with your reminders and reminder lists) from an earlier version that was automatically archived in...
Read more >
1 Click Fix for iPhone Calendar Events Disappeared
You can check your Calendar Settings by going to Settings > Calendars > Sync > All Events to sync all events from iCloud....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found