sathish76 / flutter_dnd

A Flutter plugin to manage Do Not Disturb settings on Android.
https://pub.dev/packages/flutter_dnd
MIT License
6 stars 6 forks source link

Can't be combined with android_alarm_manager #1

Closed mrhabibi closed 4 years ago

mrhabibi commented 4 years ago

Hi,

I combine flutter_dnd inside invocation method of android_alarm_manager, but it's failed with error message:

E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method isNotificationPolicyAccessGranted on channel flutter_dnd)
    #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:319:7)
    <asynchronous suspension>
    #1      FlutterDnd.isNotificationPolicyAccessGranted (package:flutter_dnd/flutter_dnd.dart:26:27)

And this is my environment:

[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18363.720], locale en-ID)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[√] IntelliJ IDEA Community Edition (version 2019.3)
[√] VS Code (version 1.43.1)
[√] Connected device (1 available)

• No issues found!

Any help would be appreciated.

mrhabibi commented 4 years ago

Sorry, false alarm, my whole plugins didn't work too because of a crash from audiofileplayer plugin, it now works as expected.