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

Cordova and Multi-Window #80

Open
jake-white opened this issue Oct 31, 2017 · 1 comment
Open

Cordova and Multi-Window #80

jake-white opened this issue Oct 31, 2017 · 1 comment

Comments

@jake-white
Copy link

jake-white commented Oct 31, 2017

Has there been any progress in finding a solution for this multi-window support? As it has described here, the Cordova activty is destroyed and restarted whenever being resized, and along with it goes the webview. My users have reported this, and since my javascript does locally store some values relating to the session and inputs, this causes some annoyance.

Not sure if this is the place for this or if this project is still active, but wondering if anyone has found a workaround. Thanks.

@pliablepixels
Copy link

pliablepixels commented Aug 27, 2018

This issue has been open for a while, and I haven't seen an update. I recently came across this issue myself.

If it helps, I scraped together a plugin for multi-window operation so that we can continue running ur apps in multi-window mode. https://github.com/pliablepixels/cordova-plugin-multi-window

It looks like we need to handle multiple things:

  1. In multi-window mode, when you switch to a different app, the other app gets an onPause() but you really don't want to clean up your resources because its not going to the background. To solve this, we need access to onStart() and onStop() which this plugin provides

  2. I also exposed an api to check if you are running in multi-window mode

  3. The activity does get restarted - if someone would like to do a PR to fix that - it would be great. I believe its got something to do with adding some key to the android manifest (resizable:true) - I tried but maybe I did something wrong.

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

No branches or pull requests

2 participants