@ReactMethod public void rDeleteAll(Callback errorCallback,Callback successCallback){
  try {
    ArrayList<Integer> ids=mNotificationManager.getIDs();
    for (    Integer id : ids) {
      try {
        mNotificationManager.delete(id);
      }
 catch (      Exception e) {
        Log.e("ReactSystemNotification","NotificationModule: rDeleteAll Error: " + Log.getStackTraceString(e));
      }
    }
    successCallback.invoke();
  }
 catch (  Exception e) {
    errorCallback.invoke(e.getMessage());
    Log.e("ReactSystemNotification","NotificationModule: rDeleteAll Error: " + Log.getStackTraceString(e));
  }
}

@ ReactMethod public void rDeleteAll ( Callback errorCallback , Callback successCallback ) { try { ArrayList < Integer > ids = mNotificationManager . getIDs ( ) ; for ( Integer id : ids ) { try { mNotificationManager . delete ( id ) ; } catch ( Exception e ) { Log . e ( "ReactSystemNotification" , "NotificationModule: rDeleteAll Error: " + Log . getStackTraceString ( e ) ) ; } } successCallback . invoke ( ) ; } catch ( Exception e ) { errorCallback . invoke ( e . getMessage ( ) ) ; Log . e ( "ReactSystemNotification" , "NotificationModule: rDeleteAll Error: " + Log . getStackTraceString ( e ) ) ; } }
react method to delete ( i . e . cancel a scheduled ) notification .
