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

Switching out of the app, using the Camera app and switching back crashes DEV app #96

Open
Zhao-Andy opened this issue Nov 14, 2018 · 2 comments
Labels

Comments

@Zhao-Andy
Copy link

Describe the bug
This is reported by someone via email; details are as-is.

I was writing reply a thread. I press home button and I opened the camera app then I took a photo. After returning back to the app, all I've written in uitextfield was gone. In fact app restarted itself. But If I go home screen from the app without doing anyting there, then returning back to the app, there is no problem.

To Reproduce
Steps to reproduce the behavior:

  1. Open the DEV app
  2. Go to an article
  3. Type a comment in the comment text field
  4. Go to the home screen
  5. Open the camera app
  6. Take a photo
  7. Switch back to DEV app
  8. Text field is erased and DEV app restarts

Expected behavior
Ensure that leaving text in the comment field and doing the following will not wipe the text field nor restart the app:

  • navigating to the home screen and back
  • navigating to the home screen, opening the camera app (or any other app) and back
  • navigating to the home screen, doing something in a different app (take a photo, send a text, etc) and back

Smartphone (please complete the following information):

  • Device: iPhone 8
  • OS: 11.4.1
@benhalpern
Copy link
Contributor

I haven't been able to reproduce this.

@chickdan
Copy link
Contributor

chickdan commented Nov 28, 2018

I haven't been able to reproduce this either, but what I suspect is happening is that iOS is purging the app to free enough memory for the task the user is currently doing (in this case using the camera). Hence the app restarting itself when the user switched back to DEV.

To solve this we need to save the state in one of the AppDelegate functions.

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

No branches or pull requests

3 participants