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

Release mode retrieveCalendars in iOS #186

Open
eliseyOzerov opened this issue Mar 17, 2020 · 6 comments
Open

Release mode retrieveCalendars in iOS #186

eliseyOzerov opened this issue Mar 17, 2020 · 6 comments
Assignees
Labels
more information required The issue requires more information before it can be actioned

Comments

@eliseyOzerov
Copy link

Basically the same issue as for the Android where the retrieveCalendars function doesn't work in release mode. I fixed it on Android by using the suggestion in #99 and the package documentation, but what do I have to do to make it work on iOS too?

@bhl09
Copy link
Contributor

bhl09 commented Mar 17, 2020

Will need to investigate, but meanwhile have you tried the iOS integration in the readme file?

iOS Integration

For iOS 10 support, you'll need to modify the Info.plist to add the following key/value pair

<key>NSCalendarsUsageDescription</key>
<string>INSERT_REASON_HERE</string>

Note that on iOS, this is a Swift plugin. There is a known issue being tracked here by the Flutter team, where adding a plugin developed in Swift to an Objective-C project causes problems. If you run into such issues, please look at the suggested workarounds there.

@eliseyOzerov
Copy link
Author

eliseyOzerov commented Mar 18, 2020

Yes, this has already been done and the project is written in Swift.

@eliseyOzerov
Copy link
Author

Hi guys, is there an update to this issue? I have a feature hung up on a project regarding the calendar with no solution to date.

@bhl09
Copy link
Contributor

bhl09 commented Mar 30, 2020

Just tried with my personal iPhone using flutter run --release -d "[MY_PHONE_NAME]" and I was able to retrieve calendars, events, etc.

It could be possible that the calendar permission has been denied somehow in the device you're testing on? Maybe try the above command with a different device?

@Ananthan1996
Copy link

Ananthan1996 commented May 9, 2020

Is this working fine in IOS release mode. It is working fine in debug mode in all IOS devices that I had tested.

@nickrandolph
Copy link
Contributor

@eliseyOzerov / @Ananthan1996 are you able to run the sample app in release mode and verify you're able to access the calendars ok?

@nickrandolph nickrandolph added the more information required The issue requires more information before it can be actioned label Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required The issue requires more information before it can be actioned
Projects
None yet
Development

No branches or pull requests

4 participants