# Safari back button doesn't work as expected

**URL:** <https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436>\
**Category:** Ask for Help\
**Created:** [December 29, 2020, 11:07am UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436 "2020-12-29T11:07:53Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 11:07am UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/1 "2020-12-29T11:07:53Z")

</div>

If you follow the link to the app ([https://app.mindly.cc/](https://app.mindly.cc/)) from some other site in Safari browser, so glide app opens in the new tab in Safari (in it’s web view), then navigate inside this app (for example, view details action, then open some layout made with another sheet, then navigate to other tab in glide app, etc) and then you press “back” button in browser (not inside Glide), you will find yourself not in a previous Glide layout (as it is expected), but on the site you came from (with link to glide app).

Everything works fine on android though.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 12:50pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/2 "2020-12-29T12:50:27Z")

</div>

Hello @Olha_Tovstenko!

Where is this web view exactly in the app? Can you explain in which screen it is so we can test it?

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 1:49pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/3 "2020-12-29T13:49:05Z")

</div>

@Lucas_Pires  
Sure! By web view I mean that person doesn’t add app to the home screen but continue to use the app in Safari.

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/276262ba956bfb4dbd6b6160749b1867ae22fd44.jpeg "Safari back button doesn’t work as expected (Glide issue overview)") ](https://www.youtube.com/watch?v=qkdLA8LHkxk)

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 1:58pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/4 "2020-12-29T13:58:51Z")

</div>

Got it!

Well, I have iPhone 7, iOS 14.3, Safari and it’s working fine. “Back” button working normally for me. I could enter in those screens you showed in the video and also went back

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 2:11pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/5 "2020-12-29T14:11:41Z")

</div>

Did you use Safari back button (circled in red in the screenshot)?  
We just cheked with iPhone 7, iOS 14.2, and it still didn’t work.

 ![photo5431520556143981337](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/a/ea13e157c76b7c91bf2f213cab953dbdd5a217c9.jpeg)

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 2:15pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/6 "2020-12-29T14:15:41Z")

</div>

If you click there, it will go back to the previous tab on **Safari** and not inside your app…

To go back **inside** your app, you gotta press the “Back” button in the left top corner

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c8475925d0e002f6ad95fff1c6044f3b101a107b.jpeg)

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 2:16pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/7 "2020-12-29T14:16:20Z")

</div>

Yep! That’s what I meant!

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 2:18pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/8 "2020-12-29T14:18:15Z")

</div>

Well, both buttons at the bottom and at the corner (_Back_ button inside-app) are working for me

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 2:24pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/9 "2020-12-29T14:24:49Z")

</div>

But you just said

> [@Lucas\_Pires](#):
>
> it will go back to the previous tab on **Safari** and not inside your app…

It’s not expected behaviour for this kind of buttons, cause user don’t understand that he/she is inside pwa but not regular website. And as I said on Android both buttons inside app (top left corner) and button at the bottom works exactly the same.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 2:28pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/10 "2020-12-29T14:28:50Z")

</div>

The behavior is expected because the user is already on Safari. And those buttons are from Safari, not from your app.

That’s one more reason that the pwa popup shows up, and we still have to teach how to do install them in the Home Screen, once it’s a ‘new’ tech majorly still it’s not used to it.

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 2:54pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/11 "2020-12-29T14:54:09Z")

</div>

But still It would greatly improve the UX if we could set the OS back button to the same value as the inner website navigation. There is already an API ( pushState() , replaceState() on history object) to add PWA views or states to the browser history.

@Lucas_Pires, I gues now It seams more as an feature request but not as an issue, am I right?

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 3:06pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/12 "2020-12-29T15:06:09Z")

</div>

> [@Olha\_Tovstenko](#):
>
> But still It would greatly improve the UX if we could set the OS back button to the same value as the inner website navigation. There is already an API ( pushState() , replaceState() on history object) to add PWA views or states to the browser history.

I’m not sure if I really understood it, but for me, the UX for both are ok. You mean glide could change the “Back button” UX to something similar to iOS bottom _‘Previous/Next’_ buttons?

If you meant it, would users get still more confused if they only open the app on safari as you tested?

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [December 29, 2020, 3:15pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/13 "2020-12-29T15:15:12Z")

</div>

I think @Olha_Tovstenko would like to see the safari page buttons control the glide app.

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 3:20pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/14 "2020-12-29T15:20:55Z")

</div>

@Eric_Penn  
Not exactly, I mean, change Safari buttons behaviour to be the same as in Glide app. In glide app it works just fine.

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [December 29, 2020, 3:21pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/15 "2020-12-29T15:21:56Z")

</div>

Yes. I meant as you describe it.

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 3:22pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/16 "2020-12-29T15:22:41Z")

</div>

Oh, sorry for that in this case!

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [December 29, 2020, 3:26pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/17 "2020-12-29T15:26:10Z")

</div>

This would be a feature request to Apple then? lol

---

<div class="post-metadata">

**Author:** ![Olha\_Tovstenko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/olha_tovstenko/32/15693_2.png) [@Olha\_Tovstenko](https://community.glideapps.com/u/Olha_Tovstenko)\
**Post date:** [December 29, 2020, 3:38pm UTC](https://community.glideapps.com/t/safari-back-button-doesnt-work-as-expected/20436/18 "2020-12-29T15:38:06Z")

</div>

I guess, you can do it using history api from your app, of course. Maybe that’s not possible using pwa, that’s what I’m wondering about.
