journey.leaveApp is not a function

I am trying to implement a feature where i use the journey.leaveApp function after a button click to make this easy for the user. i have followed the documentation suggestion in the use of that function but I kept getting the error:
journey.leaveApp is not a function

Here is a sample of my code:

function leaveApp(){
    return journey.leaveApp({ keepData: false });

I have also tried this function without the return statement, and I get the same error.

Hi @mbusakwe

journey.leaveApp() was introduced in v4.75 of the JourneyApps Runtime.

If you are getting that error in an app that is using a runtime version >= 4.75, then that is a regression, in which case please send us a support ticket at and include a link to the app in question