-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
result from retrieveCalendars() returns id and name = null on Android #217
Comments
Well after starting from a brand new project I figured out what was wrong, I was running into this issue flutter/flutter#47517 after I added google #, and tried to fix it with one of the accepted answers ===>
This created the conflict with device Calendar and start to get back null results, I fixed it using the other solution from the issue Add this to defaultConfig
That one fixed the original issue and don't mess with device calendar |
We had similar issues previously on release mode, if related, you might want to check the Proguard settings for Android here. |
Yes, I am actually getting that issue now, waiting for some feedback on that there |
I am also facing same issue in release apk only even after applying above changes. Please help if anyone faced and resolved it before. Thanks |
I got it resolved by following Proguard settings. @Brett09 Could you please remove - if you have Proguard enabled, from the readme page because it is confusing . most of new developer dont know whether it is enabled for their project or not. So Make it a mandatory steps rather than optional in installation of this library. |
I'm getting the same issue. I'm new to app development and AFAIK I'm not using Proguard (I couldn't find any proguard file), and what @chuckinSpace suggested didn't work for me either.... |
I solved this issue following this comment. |
i have the same issue and tried all solutions listed here... nothing worked |
yeah same. Windows Android Emulator, all fine. debugging on real device fine. but a release build in Play Store is not working, cause missing or invalid calendar id. |
@PauloBrazilDHPP and @maerlynflagg , can you confirm that you added the appropriate proguard settings? |
yes i can confirm, that is fixed, after i made a proguard on 25 Mar. this helped me:
|
Only on Android (IOS is working fine, same code), I'm getting back a non-empty array with the right amount of calendars (length 2), but the actual fields are all null, (id, name etc..) any ideas? permissions are granted correctly, I tried both on the simulator and on a real device
final calendarsResult = await _deviceCalendarPlugin.retrieveCalendars();
The text was updated successfully, but these errors were encountered: