Onesignal push notification

Hi all,
I need to configure my app to receive only segmented (or category) notification but I don’t understand how can I do it. Could you please help me?

    var notificationReceidedCallback = function (jsonData) {
      console.log('notificationReceidedCallback: ' + JSON.stringify(jsonData));
    };

    var notificationOpenedCallback = function (jsonData) {
      console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
    };

    window["plugins"].OneSignal
      .startInit(FIREBASE_APP_ID, FIREBASE_SENDER_ID)
      .handleNotificationOpened(notificationOpenedCallback)
      .handleNotificationReceived(notificationReceidedCallback)
      .endInit();

Thanks