Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app does not maintain state #7

Open
duckbrain opened this issue May 23, 2017 · 3 comments
Open

Android app does not maintain state #7

duckbrain opened this issue May 23, 2017 · 3 comments

Comments

@duckbrain
Copy link
Owner

When you leave the app, the web view reverts to the default page. This occurs with switching between apps or rotating the screen.

@chriscoderdr
Copy link

chriscoderdr commented Jul 2, 2017

I bet it has something to do that gowebview doesn't save/restore application state https://github.com/microo8/gowebview/blob/master/strings.go in onresume it just go to the home again.
I will try to check.

@chriscoderdr
Copy link

BTW I would strongly suggest to add instructions in the readme on how to generate/update the android app, cause it's not really straight forward.

@duckbrain
Copy link
Owner Author

I don't know how I missed this for a year, but yes. I've experienced something like this before with another app, where creating/destroying the activity caused the webview to be created/destroyed and bring it back to the default.

I really can't remember how I did it, and I was never able to reproduce it. I would probably have better luck starting my own Android project and build, etc. by hand. I just don't want to do that badly enough. I remember spending a couple of days to get the gowebview project to generate my Android project.

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

No branches or pull requests

2 participants