-
Notifications
You must be signed in to change notification settings - Fork 587
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
Switching out of Android app closes file - why? #270
Comments
Try replace line in file FileOpener2.java function _open Or add |
Thanks - did you experience the Android behaviour I described? It does not seem to have been widely reported. I wondered if it was because my Cordova and plugin versions were out-of-date... I am not working on the project right now but will log your suggestions for next time I am on it, Thanks again! |
I know this is old thread, but I also have same issue with latest plugin and cannot find a solution. I tried the changes above did not help. Some investigation I did seems to suggest maybe services are required to keep the activity running after it goes to the background? |
For me crucial was this commit 3eb2bc7 |
Thanks @pawelzwronek seems to be working nicely now! |
@pawelzwronek This is not working again with Error
|
Is it working with any older version? |
@pawelzwronek No. I started from this |
So why did you write "not working AGAIN", like it worked for you in the past? This is some new bug on you side or the plugin, right? |
@pawelzwronek I have given that feedback due to this comment #270 (comment) i.e. I hope it worked for him and you on |
It looks like new Android 10 is the issue. Can you describe the use case, when you get the error? |
Currently testing version 2.0.19 with Cordova 6.5.0.
I can open PDFs and other files in Android and iOS OK. However, in Android if I switch away from the app (e.g. to the Home screen or recent apps) and switch back to my app, the file has closed. There seem to be no errors logged, but it means the user must then open the file again (which works).
I have also noticed in Android that if I open a PDF it seems to open within the app - but in the recent apps screen I can see 2 tabs, one for my app and one for the PDF. If I click my app the above behaviour occurs - if I click the PDF it simply disappears and dumps me back to the Home screen!
Are these behaviours expected? I have looked through all the issues and can't see anyone else reporting them... In iOS everything works as expected, the file opens within the app and I can switch out and back into it with no problems.
Any help or advice appreciated!
The text was updated successfully, but these errors were encountered: