Saving and Restoring $ionicHistory

Hi,

This may be a n00b questions, so please forgive me if it is…

I am creating an ionic app that “wizards” a user through about 10 forms. As the user submits each form, it saves the form data object to localStorage, as well as the state name it completed. Then, if the user shuts down the app, they can come back and continue on if they choose. It then restores the form data from localStorage and does a state.go() to the last saved state.

The problem is that when that happens, the history is lost. I see that I can view the $ionicHistory, but how do I save that and restore it back at a future point? I could save output of $ionicHistory.viewHistory() to localStorage, but there does not seems to be a method like .setHistory…

Any help would be appreciated.