Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Pushstate not working for android #7

Closed
oktayla opened this issue Apr 21, 2017 · 2 comments
Closed

Pushstate not working for android #7

oktayla opened this issue Apr 21, 2017 · 2 comments

Comments

@oktayla
Copy link

oktayla commented Apr 21, 2017

Pushstate is good working on F7+Vue,
but it's not working on F7+React
ekran resmi 2017-04-22 00 50 25

Exit from App When i touched back button on navigationbar
please let me know how can I fix it

@bencompton
Copy link
Member

How are you running it on Android? For example, I just cloned this repo and tested pushState in Chrome on my Android phone. I also added it to home screen in Chrome and tried it that way. In both cases, the back button worked as expected.

Incidentally, any Framework7 initialization parameter can simply be passed in as props to the Framework7App component. This is what mine looks like:

<Framework7App themeType="ios" routes={routes} pushState={true} pushStateSeparator="">

This is the only change I made after cloning the repo. Perhaps you could try making another clone and test it with the code above? I wouldn't expect my syntax to necessarily work differently than yours, but you never know.

@oktayla
Copy link
Author

oktayla commented Apr 22, 2017

That's good, i changed my code and it worked.
But when back to home, does not "onRouteChange" need trigger?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants