Discourse iOS 应用将我踢回主屏幕

The Discourse Hub iOS app does not stay in the forum when I multi task to another app. I’m using iOS 13.2.2 (latest) yet the behavior is the same. I’ll lose my place in the thread I’m reading and have to search for it every time. Is this the normal behavior?

It would be good if the app can also swap between forum very easily and remember the discussion thread you’re in, not just showing “The Latest” or “Unread”. It’s like emulating the behavior of Mobile Safari with multiple tabs open and swapping between them. I’d be super happy for this feature along.

It won’t lose state unless you close it, or iOS kills it off in the background.

iOS 13 has had issues with this, 13.2.2 is meant to improve on things, but it doesn’t keep apps open ad infinitum.

In my case, iOS must have killed it once I multitask to another app. And it happened too often, that’s why I’m reporting here. Am I the only one facing this?

It’s probably too soon to know. With handsets updating too 13.2.2 automatically it will be days until a sufficient number of users have the update to be able to say.

I’ve reopened the app today and it returned to where I left off.

Which iPhone are you using? Which other apps do you use regularly?

Apple claims they fixed RAM management issues in iOS 13.2.2 and iPadOS 13.2.2. I don’t think that it’s a bug.

Are you multitasking heavily? My iPhone 11 Pro is on iOS 13.2.2 and the Discourse app seems to work fine. It never crashes or refreshes when doing light or medium multitasking.

Then again, my iPhone has 4 gigabytes of RAM. Considering that iOS 13.2.2 (and iPadOS 13.2.2) is supported on devices with at least 2 gigabytes of RAM, it could simply be because of the age of your device.

I’m using Xs Max, so it’s not that old. Having said that, the apps that I frequently multi task to is around WhatsApp, Twitterrific, Apollo and camera. I notice that it happens more frequently when I switched to camera. Maybe taking photos and videos does consume more internal memory. The interesting thing is, and I’m experimenting now, its much better in Safari tab - when I returned to Discourse in Safari, the page goes blank and it refreshes. But once refresh completes, I’m where I last left off. But Discourse Hub (iOS app) sent me back to the app home screen instead of staying put and refreshes.

Safari tabs persist between closures. If you’re using stuff which causes discourse to be terminated there’s no equivalent behavior.

That’s probably right too. The goal of the app is to provide quick and easy access to multiple communities. Being taken to the home view which shows updates across all sites is a big part of what makes the app useful.

Yeah, it probably has something to do with the camera app in particular.

No. This is a real problem and has nothing to do with the camera.

If I leave the app for 5 seconds while writing a comment to look something else up in Safari, for example, I have to wait for the app to launch from scratch, choose the Meta site again, find the topic again, and hope that most of my response got saved as a draft.

I assumed when this first started happening that it was related to a bug I read about in iOS 13. But that has been fixed and the problem is gone for other apps.

Edit: I’m on an iPhone XS, and don’t run into this with any other app.

Do you have a consistent repro and set of steps you can take to make this happen?

Eg:

  1. Start a reply on meta
  2. Flip to safari, visit site X, Y etc… wait N minutes
  3. Flip back to app and it is on the start screen

Good question. No I don’t. I’ll let you know if I come up with one. All I can say is that I don’t have this problem in other apps where I type and switch apps regularly, but I do in this one.

I’m sure it’s Apple’s fault for changing/breaking something that only seems to be biting this app for me, but I sure hope it can be resolved.

Understood, I do use the app a fair bit and due to luck have not hit this, but I totally trust it is happening for you.

Hoping there are some steps you can come up with that repro the issue.

Well, it’s even worse than I’ve reported before. It is not uncommon for me to simply be reading here on meta, lock my phone while I do something else for a few minutes, and when I unlock the phone, the app isn’t even running anymore.

And I’ve seen it occasionally in other apps, too. I think it’s iOS. I just wish it was not Discourse where I was seeing it so often.

姑且一说,我复现了一个崩溃问题,但我不确定是由 iOS 还是应用本身引起的。

我可以打开应用,点击我网站上的某个特定主题,点击“显示完整帖子”以从 WordPress 获取内容,滚动一会儿,锁定手机,等待约 30 秒,然后解锁手机,此时 Discourse 应用已不再运行,且上下文已丢失。

自上次更新以来,我认为没有其他应用会出现仅因锁定手机、等待后解锁就导致应用退出的情况。

“显示完整帖子”是做什么的?它会打开 Safari 吗?

不,它是通过抓取库或类似方式拉取链接的 WordPress 帖子内容。

这似乎是内置功能,但我只见过它在使用 WP-Discourse WordPress 插件时被采用。我相信 @simon 可以进一步解释。重要的是,它直接在 Discourse 中显示内容,整个过程不使用其他应用程序。