pushState problems

Hello, I’m new to the framework 7 and I am having some dificults to use ‘pushState’, when a set pushState true and try to go back with android back button sometimes everything goes well but sometimes not, and I don’t know why, please help me solve this problem.

var app = new Framework7 ({

view: {
pushState: true,