builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
259 stars 258 forks source link

INVOKE_CHANNEL_METHOD_ERROR: PlatformException(401, The user has not allowed this application to modify their calendar(s), null, null) #494

Closed davehorner closed 11 months ago

davehorner commented 11 months ago

I've added

<uses-permission android:name="android.permission.WRITE_CALENDAR" />

It was working for a time first run. It suddenly stopped having permissions to read/write to the calendar. I have uninstalled it and reinstalled many times. I'm sure it was working at one point. Not sure what else to do, looking for suggestions on what else I might try. When I go to settings, Permissions is grey'd out and says no permissions requested.

INVOKE_CHANNEL_METHOD_ERROR: PlatformException(401, The user has not allowed this application to modify their calendar(s), null, null)
    <uses-permission android:name="android.permission.READ_CALENDAR" />
    <uses-permission android:name="android.permission.WRITE_CALENDAR" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>

I'm using many permissions successfully.

davehorner commented 11 months ago

I had the permissions in src\profile\ and not in main. working fine. not sure how it ever worked.