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

Calendar attributes from retrieveCalendars() only present in debug mode #484

Closed
steffomix opened this issue May 7, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@steffomix
Copy link

In production mode with sound null savety enabled the method
DeviceCalendarPlugin().retrieveCalendars()
returns a correct amount of Calendars but without attributes like name or accountName.

In debug mode or by running a debug version everything works as expected.

Test Device is a Samsung SM A336B with API Level 33 (Android 13).

pubspec:

environment:
  sdk: '>=2.19.4 <3.0.0'

dependencies:
  flutter:
    sdk: flutter

  background_location_tracker: # https://github.com/icapps/flutter-background-location-tracker
    path: ../git-packages/flutter-background-location-tracker
  
  flutter_osm_plugin: # https://github.com/liodali/osm_flutter
    path: ../git-packages/osm_flutter

  flutter_local_notifications: 13.0.0
  permission_handler: 10.2.0
  shared_preferences: 2.0.15
  path: 1.8.2
  http: 0.13.5
  sprintf: 7.0.0
  vector_math: 2.1.4
  path_provider: 2.0.13
  external_path: 1.0.3
  android_intent_plus: 3.1.6
  loading_animation_widget: 1.2.0
  device_calendar: 4.3.1 
  geolocator: 9.0.2
  file_manager: ^1.0.2
  fluttertoast: ^8.2.1
  cupertino_icons: 1.0.5

dependency_overrides:
  geolocator_android: 4.1.4

permissions:


    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_CALENDAR"/>
    <uses-permission android:name="android.permission.WRITE_CALENDAR"/>
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
@steffomix steffomix added the bug Something isn't working label May 7, 2023
@steffomix
Copy link
Author

Sorry, found the solution for the issue in the readme here

Direct Link here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants