4

I want to turn on and off do not disturb mode in android using flutter.

My Question is :
"Is there any way to achieve it without writing native code (i.e. any package or direct dart code)"

Debabrata Samal
  • 73
  • 1
  • 13
Benny
  • 677
  • 1
  • 6
  • 22
  • 1
    you must write native code – diegoveloper Nov 21 '18 at 02:08
  • did you succeed at this? – Robin Dijkhof Mar 12 '19 at 18:25
  • This is unlikely to be a feature, Android will not allow apps to disable something the user has set, especially since this can annoy people **badly**. By native, you mean Kotlin/ Java/ Android code. I see lots of developers using native to mean anything below them. In Android, we use native to mean C/ C++/ actual native code. Maybe the C++ developers will call assembly native, IDK. – Ben Butterworth Dec 21 '20 at 09:57
  • any update on this question? – Shlok Jain May 23 '21 at 02:06
  • You can use [flutter_dnd](https://pub.dev/packages/flutter_dnd) package. Here is the [medium blog](https://sathish76.medium.com/control-dnd-settings-in-flutter-e53481cb6ec5) for this package – Debabrata Samal Dec 06 '22 at 11:17

0 Answers0