Skip to content
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

Disconnected from ios simulator when calling the event #58

Closed
keanallen opened this issue Mar 20, 2021 · 2 comments
Closed

Disconnected from ios simulator when calling the event #58

keanallen opened this issue Mar 20, 2021 · 2 comments

Comments

@keanallen
Copy link

keanallen commented Mar 20, 2021

I'm using macbook air 2020, and my simulator is iPhone 12 Pro Max. When I click the "add to calendar" button on my app, the iPhone simulator will be disconnected and exits the app. But no problem on android

final Event event = Event(
     title: eventTitle,
     description: eventDescription,
     location: currentCustomer['location'],
     startDate: bookings[index].startdate.iso,
     endDate: bookings[index].startdate.iso);
    
     Add2Calendar.addEvent2Cal(event, androidNoUI: false);
);

info.plist

<key>NSContactsUsageDescription</key>
<string>This app needs access to calendar to add events</string>
@keanallen
Copy link
Author

I got it working on ios by adding this key in the Info.plist

<key>NSCalendarsUsageDescription</key>
<string>This app needs access to calendar to add events</string>

@keanallen keanallen changed the title Disconnected from simulator when calling the event Disconnected from ios simulator when calling the event Mar 20, 2021
@diegogarciar
Copy link
Collaborator

Yes it seems I accidentally documented the wrong permission. Docs have been fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants