ping-identity
    Preparing search index...

    Function collectDeviceProfileForJourney

    • Collects a device profile as part of an active Journey callback.

      Parameters

      • journey: JourneyInstance

        Active Journey instance used to resolve the callback context.

      • collectors: DeviceProfileCollector[]

        Ordered list of predefined collectors to execute.

      • Optionaloptions: DeviceProfileLoggerOptions

        Optional logger overrides for this call.

      Returns Promise<DeviceProfileJourneyResult>

      Result object describing success.

      The Journey instance owns lifecycle and state; this call simply delegates to native.

      const node = await journey.start();
      if (node.callbacks?.some(cb => cb.type === 'DeviceProfileCallback')) {
      try {
      await collectDeviceProfileForJourney(
      journey,
      ['hardware', 'network', 'browser']
      );
      await journey.next();
      } catch (error) {
      console.error('Device profile submission failed', error);
      }
      }