hideNotificationDrawer

Android Only

API used to hide the notification drawer, for example, when the user presses one of the quick actions on the notification, you may wish to hide the drawer.



hideNotificationDrawer(): void;

Please use this functionality carefully as it could potentially be quite intrusive to the user.

Requires the following permission to be added to your AndroidManifest.xml:

<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
import notifee from `@notifee/react-native`;

notifee.hideNotificationDrawer();


Copyright 2020 - 2021 © Invertase Limited

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License and code samples are licensed under the Apache 2.0 License.

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.