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

@ ReactMethod public void rGetIDs ( Callback errorCallback , Callback successCallback ) { try { ArrayList < Integer > ids = mNotificationManager . getIDs ( ) ; WritableArray rids = new WritableNativeArray ( ) ; for ( Integer id : ids ) { rids . pushInt ( id ) ; } successCallback . invoke ( ( ReadableArray ) rids ) ; } catch ( Exception e ) { errorCallback . invoke ( e . getMessage ( ) ) ; Log . e ( "ReactSystemNotification" , "NotificationModule: rGetIDs Error: " + Log . getStackTraceString ( e ) ) ; } }
react method to get all notification ids .
