Are you using multipage apps? If yes, you can follow this guide from docs. If not, you can try this solution.