Run flow on page view (mobile app)

Hi all,

Using Framework7 in a mobile app.

Is there a way to run a flow when a page is viewed (not just initial load)?

I have an “options” page which is displayed when my app runs to check if a user is logged in and if not it allows the user to login, sign up or view public data. But if they are logged in it takes them straight into the app.

It runs when the app first launches but if the user navigates back (every page has a back button tied to the history) the flow will not run (it is set to auto run).

I see that Framework7 has a page.reinit event but I am not sure how to check for that event or if there is a built-in way of achieving this.

Thanks, Paul.

Community Page
Last updated: