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

Can't bookmark specific views as PWA on iOS 15.5 #897

Closed
jbarbero opened this issue Sep 5, 2022 · 9 comments
Closed

Can't bookmark specific views as PWA on iOS 15.5 #897

jbarbero opened this issue Sep 5, 2022 · 9 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@jbarbero
Copy link

jbarbero commented Sep 5, 2022

Describe the bug
Can only bookmark the index.html view on iOS 15.5 Mobile Safari.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://organice.200ok.ch/files/foobar in Mobile Safari on iOS 15.5
  2. Click on Share -> Add to Home Screen
  3. URL offered is https://organice.200ok.ch/index.html

Expected behavior
The URL offered should be: https://organice.200ok.ch/files/foobar

Smartphone (please complete the following information):

  • Device: iPhone 12
  • OS: iOS 15.5
  • Browser: Safari

Additional context

I think the problem is that the manifest start_url is not being generated correctly here:
https://github.com/200ok-ch/organice/blame/master/public/index.html

I will try to debug this, but wanted to post the issue first.

Thanks!

@jbarbero jbarbero added the bug Something isn't working label Sep 5, 2022
@jbarbero jbarbero changed the title Can't bookmark specific views as PWA on iOS Can't bookmark specific views as PWA on iOS 15.5 Sep 5, 2022
@schoettl
Copy link
Collaborator

schoettl commented Sep 5, 2022

Thanks for the report!

Can't test on iOS but on Android with Firefox, it works.

@jbarbero
Copy link
Author

jbarbero commented Sep 6, 2022 via email

@munen
Copy link
Collaborator

munen commented Sep 15, 2022

I confirm that it does not work on iOS 15.6.1. It definitively used to work. And we had to adapt this once or twice already due to changes in iOS or Android. Not saying that it is not a regression on our side this time. I haven't looked into it, yet.

My old bookmark on the homescreen still works, though.

@jbarbero Thank you for the report 🙏

I will try to run it myself and submit a fix when I have a moment.

That is very kind of you! I'll assign the issue to you, then.

@munen
Copy link
Collaborator

munen commented Jan 4, 2023

Bookmarking a specific view was something that we previously explicitly built, because it seemed like a good idea. It worked well for me in the last years (and it still works on my phone - probably because the bookmark is older than my phone).

For two reasons I've added a different issue which will fix this one:

  1. Saving specific bookmarks seems to be brittle on both mobile platforms for whatever reason. Personally, I don't like these mobile platforms overriding basic web functionality, but it is what it is(;
  2. Even if bookmarking a specific file would still work, it would be committing to this file to be your startup file.

Hence, I've opened a new issue #919 to enable the user to set a default file in the file settings. To me, this seems the way to go.

@munen
Copy link
Collaborator

munen commented Jan 4, 2023

Long story short, I implemented #919 in #922.

It is my understanding that the implementation will solve your workflow request. If it's alright with both of you @jbarbero and @schoettl, we can close this issue.

@munen munen added the question Further information is requested label Jan 4, 2023
@jbarbero
Copy link
Author

jbarbero commented Jan 8, 2023 via email

@munen
Copy link
Collaborator

munen commented Jan 9, 2023

Hi János

Thank you, that looks like a great fix.

Thank you for the kind words🙏

I would have preferred being able to bookmark a subdirectory as well, but this is already very helpful!

I understand. It's only been about two years that I've put substantial (research and a bit of coding) effort into making bookmarks work, again, on iOS and Android properly. And even before that it was an extra effort to get them to work in the first place. It seems like the iOS and Android APIs are really brittle concerning this basic web functionality.

If you're interested you can check it out and make bookmarks work independently of the change I've made. A little time ago, your requirement to bookmark a subdirectory would totally have worked.

Here are the two last PRs where we worked on this:

Since you're still interested in getting this to work, I'll happily leave this issue open and assigned to you.

Kind regards,
Alain

@munen
Copy link
Collaborator

munen commented Jan 9, 2023

Random hunch, but maybe this is related: #904

@munen
Copy link
Collaborator

munen commented Jun 20, 2023

This issue is now superseded by #919 which is also implemented.

@munen munen closed this as completed Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants