# iOS PWA 中的返回按钮

**URL:** https://meta.discourse.org/t/back-button-in-ios-pwa/93909
**Category:** Support
**Created:** [2018年八月4日 10:59 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909 "2018-08-04T10:59:38Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)
#### Post date: [2018年十月19日 01:03 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/23 "2018-10-19T01:03:43Z")

</div>

> [@Progressive Web Application (PWA)](https://meta.discourse.org/t/progressive-web-application-pwa/79217/26):
>
> We didn’t design Discourse to be used without the browser back-button, so we disabled the feature for now, like Starbucks in the example above.

What about a back button coded in a theme component? Would something like that suffice for a PWA?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年十月19日 01:06 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/24 "2018-10-19T01:06:08Z")

</div>

Even better if it can detect that is inside an iOS PWA and activates automatically. No idea about how the UI would be…

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 01:09 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/25 "2018-10-19T01:09:33Z")

</div>

This sounds like a lot of work to satisfy a very small number. This topic is 10 months old and has garnered all of 28 responses out of 900+ views. People are hardly breaking the door down for it to be implemented.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 01:16 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/26 "2018-10-19T01:16:23Z")

</div>

this was already active, I think people realizing that its gone is what triggered it. I have screenshots of it working 8 days ago. It stopped loggin me in and I cannot get back logged into it. Im at the point ill pay 2000 for an app that does it. It looks so much cleaner without it

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 05:35 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/27 "2018-10-19T05:35:55Z")

</div>

Old home screen shortcuts would continue to work, and there may be very old discourse installations where it’s still enabled (because they’ve not updated in a very long while) but it has been out of core for some time now.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 06:26 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/28 "2018-10-19T06:26:32Z")

</div>

oh i didnt install discourse app for it, im talking about just hitting the safari add to home screen button

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 06:29 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/29 "2018-10-19T06:29:44Z")

</div>

As am I.

The behavior you’re talking about is controlled by the site you bookmark on the homescreen, and PWA has been disabled in tests-passed (the default that everyone deploys) for a while now.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 07:14 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/30 "2018-10-19T07:14:56Z")

</div>

why cant there be a setting that enables us to use it on the backend, I get it that there are features that dont work but that allows us to make it available

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 08:07 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/31 "2018-10-19T08:07:33Z")

</div>

Because that setting would be for all users of a site, not on a per-user basis. That means the site they’re typically used to browsing on mobile/desktop loses the ability to go back a page when they misclick, or want to retread their steps, and can only go to home and start over.

All to reclaim this (red arrows):

 ![IMG_4289](https://global.discourse-cdn.com/meta/original/3X/b/9/b92985c066c34bed9f84bc86fb2461659055a746.jpeg)

On that screen size the red arrow marks out around ~100 pixels, or **around 4% of the screen height**.

Discourse has millions of users globally, this topic has **three** people asking about reverting a change. No customers are asking for it’s reintroduction for good reason, that kind of crippled UX borders on user-hostile.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 16:42 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/32 "2018-10-19T16:42:42Z")

</div>

right but a lot of the people I can assure you do not add a bookmark to their screen. I am sure the owner of the company or someone with the proper authority can show you how mamny people use the discourse app. Again this is irrelevant. What is relevant that if someone wants to use it without the silly addressbar on the top it is programmable for a simple switch to turn on said such meta tags to shut it down. Matter of fact, you could go a step further and allow customer header code that would be accepted to shut it down

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 16:48 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/33 "2018-10-19T16:48:35Z")

</div>

> [@Progressive Web Application (PWA)](https://meta.discourse.org/t/progressive-web-application-pwa/79217/39):
>
> right but a lot of the people I can assure you do not add a bookmark to their screen.

You’re just making more of a case not to implement this - if it’s for an audience of one, to reclaim 4% of the screen height, it’s not worth the development effort.

> [@Progressive Web Application (PWA)](https://meta.discourse.org/t/progressive-web-application-pwa/79217/39):
>
> What is relevant that if someone wants to use it without the silly addressbar on the top it is programmable for a simple switch to turn on said such meta tags to shut it down.

Look at my screenshot, the address bar collapses as you scroll down, reducing the height by around ~40%. There’s also value in seeing the domain name and SSL icon.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 17:20 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/34 "2018-10-19T17:20:09Z")

</div>

see this is def a case by case, my discourse is not public and is a closed group. I dont know why I am sitting here arguing with you as I would like it done to my site as it was before. If you dont like it, then you dont like it. Im not going to get into a pissing match with you because you dont like it.

Youre also NOT factoring in the safari bar on the bottom

 ![PNG](https://global.discourse-cdn.com/meta/original/3X/1/c/1cef2925bb84151293622d7eb256844296cac2f3.jpeg) ![PNG](https://global.discourse-cdn.com/meta/original/3X/b/0/b002e8ec3f976cebdd6788e0913a8254eec12707.jpeg)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018年十月19日 17:24 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/35 "2018-10-19T17:24:23Z")

</div>

I am, as soon as you begin scrolling that bar disappears - as per my screenshot.

There’s no pissing contest here - you need to convince the team that this **is worth the engineering effort** , which you aren’t doing.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 17:27 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/36 "2018-10-19T17:27:19Z")

</div>

right but the gray on the top doesnt blend well (where it says wifi), and when you scroll up the bar on the bottom pops back up. It just seems like a such a ridiculous argument when I made it clear ill pay whatever to get them gone. I just dont like it on my site as 300 other people.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月19日 17:29 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/37 "2018-10-19T17:29:04Z")

</div>

I dont need to convince them, ill pay them if I have to. Its worth it for me, whether or not its worth it to you is kind of irrelevant at this point. The point is, it was there and now its gone. So it was one time there. If it was never there we wouldnt be having this. Its like me selling the products on my store and then I up the price later or no longer sell what I was selling. ITs kind of like I bought into it, I loved it and now its gone and I miss it.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2018年十月19日 22:38 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/39 "2018-10-19T22:38:03Z")

</div>

We will add a configurable site setting for this next week, so admins can enable and disable and test whenever PWA support by browser vendros change.

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月20日 01:35 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/41 "2018-10-20T01:35:09Z")

</div>

ty @Falco I am forever indebted to you 😉

---

<div class="post-metadata">

### Author: ![jaihaze](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jaihaze/32/95691_2.png) [@jaihaze](https://meta.discourse.org/u/jaihaze)
#### Post date: [2018年十月22日 04:18 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/43 "2018-10-22T04:18:01Z")

</div>

do we know if its early next week and will it be in the release notes?

---

<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年十月22日 04:36 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/44 "2018-10-22T04:36:22Z")

</div>

We will have the change deployed to your site by Monday the 29th of October

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [2018年十月22日 23:44 UTC](https://meta.discourse.org/t/back-button-in-ios-pwa/93909/45 "2018-10-22T23:44:15Z")

</div>

> [@Progressive Web Application (PWA)](https://meta.discourse.org/t/progressive-web-application-pwa/79217/30):
>
> What about a back button coded in a theme component? Would something like that suffice for a PWA?

Here’s a back/forward component I threw together. I used `@media` to make it appear since ‘Mobile’ doesn’t work for an ipad. This was developed for an app so it has no way to detect iOS PWA. I’d be happy to add it if anyone has ideas.

 ![IMG_9980](https://global.discourse-cdn.com/meta/original/3X/a/8/a88b2f09e0829fce11459a27dcee94e2953da11c.jpeg)

[https://github.com/davidkingham/mobile-navigation/](https://github.com/davidkingham/mobile-navigation/)

I found a snippet on this page, but my skills are lacking to implement it.

> **[Progressive Web App Development | Netguru](https://www.netguru.com/services/progressive-web-app-development)**
>
> Progressive Web App development is a cheaper alternative for native mobile & web apps. Hire a team of Netguru experts trusted by the leading brands.

[上一頁](https://meta.discourse.org/t/back-button-in-ios-pwa/93909.md?page=1)

[下一頁](https://meta.discourse.org/t/back-button-in-ios-pwa/93909.md?page=3)
