Resuming a Journey
You can resume any incomplete journey at any time by calling the resumeJourney
as follows:
let flowId = "<FLOW_ID>"
let journeyId = "<YOUR_JOURNEY_ID>"
let locale = "en"
IDWiseDynamic.resumeJourney(flowId: flowId,
journeyId: journeyId,
locale: locale,
journeyCallbacks: self.
stepCallbacks: self)
val flowId = "<FLOW_ID>"
val locale = "en"
val journeyId = "<journeyId>"
IDWise.resumeJourney(
context = this,
flowId = flowId,
journeyId = journeyId,
locale = locale,
journeyCallbacks = journeyCallbacks,
stepCallbacks = stepCallbacks
)
String flowId = "<FLOW_ID>"
String locale = "en";
String journeyId = "<JOURNEY-ID>";
IDWiseDynamic.resumeJourney(
flowId,
journeyId,
locale,
journeyCallbacks,
stepCallbacks
);
var flowId = "<FLOW_ID>"
var journeyId = "<JOURNEY_ID>";
var locale = "en"
IDWise.resumeJourney(
flowId,
journeyId,
locale,
journeyCallbacks,
stepCallbacks
);
var flowId = "<FLOW_ID>"
var journeyId = "YOUR_JOURNEY_ID"
var locale = "en"
IDWiseDynamic.resumeJourney(
flowId,
journeyId,
locale,
journeyCallbacks,
stepCallbacks
)
This method takes following parameters:
flowId
: This is a unique identifier that identifies your journey flow.journeyId
: Identifier of the journey you want to resume.locale
: (Optional) Specifies the language for the IDWise SDK screens. It should be a 2-letter ISO code (e.g.,en
for English,ar
for Arabic, etc.). For a full list of supported languages, please contact IDWise Support.journeyCallbacks
: This parameter allows you to define event handlers at the journey level. The list of journey-level events can be found here.stepCallbacks
: This parameter lets you define event handlers at the step level. The details of step-level events are available here.
After the journey is resumed and inside onJourneyResumed
callback, you can enquire on the journey status to check which steps were concluded already and which ones the user still need to perform them so you can start those remaining steps. Please check Getting the Journey Status for details on how to get the journey status.
Updated 2 months ago