# iOSアプリでログイン状態を維持する方法は？

**URL:** https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731
**Category:** Support
**Created:** [2018 年 10 月 29 日午前 7:47 UTC](https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731 "2018-10-29T07:47:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![silverhuang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silverhuang/32/109835_2.png) [@silverhuang](https://meta.discourse.org/u/silverhuang)
#### Post date: [2018 年 10 月 29 日午前 7:47 UTC](https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731/1 "2018-10-29T07:47:44Z")

</div>

Hi,

I have a self-hosted Discourse installation and I downloaded the iOS Discourse app to test it out. I added the URL correctly at [https://community.intrepidintegrity.com](https://community.intrepidintegrity.com) and it authorized correctly and all but as soon as I tap out of my community into the Discourse app and tap back again, I get the login screen again.

Is there any way to stay logged in?

I have v2.2.0.beta3 +39 installed and latest version of iOS Discourse app installed on iOS 12.0.1 on an iPhone 8. I’ve uninstalled and reinstalled and re-added my community twice to check

I have looked through [iOS keeps logging users out when HTTPS site added via HTTP link](https://meta.discourse.org/t/ios-keeps-logging-users-out-when-https-site-added-via-http-link/86140) but not sure if that applies here.

Many thanks!

Regards,  
Silver

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018 年 10 月 29 日午前 8:35 UTC](https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731/2 "2018-10-29T08:35:42Z")

</div>

@j.jaffeux has a new version of the iOS app in the pipeline that may fix this.

I recommend you remove everything, be sure to add your community with HTTPS:// but before you do that, go to your app tab in your user profile and just revoke all the duplicates.

---

<div class="post-metadata">

### Author: ![silverhuang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/silverhuang/32/109835_2.png) [@silverhuang](https://meta.discourse.org/u/silverhuang)
#### Post date: [2018 年 10 月 29 日午前 8:46 UTC](https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731/3 "2018-10-29T08:46:35Z")

</div>

Many thanks @sam, revoking the duplicates in the Apps tab, followed by deleting, re-adding and re-authorizing the community in the iOS app did the trick. I’ve tapped in, tapped out and closed and re-opened the app and stayed logged in with no further issues. Much appreciated!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2018 年 11 月 28 日午前 8:46 UTC](https://meta.discourse.org/t/how-to-stay-logged-into-ios-app/100731/4 "2018-11-28T08:46:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
