Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

Adaptation of the platform in responsive mode for smartphones?

Open NexusEFR opened this issue 2 years ago • 14 comments

Hello again @ll, first of all I would like to congratulate you for your dedication and great work.

Given that the platform is perfectly operational from a smartphone and seems responsive in almost all tools, I see a couple of details that can perhaps be adapted for a better experience.

1º Is it feasible to give it the possibility to "install application" in web app mode? Let me explain, there are other self-hosted applications that do not have a native app in markets such as Google Play or App Store but offer after entering the url of the web application, the option to "install application" and creates a virtual app with a shortcut icon on the smartphone, which adapts to the entire screen and does not show the address bar of the internet browser (chrome, edge.. etc), giving the feeling of a native app installed, I don't know if I'm explaining. 2º This point could be related to the first one, I have seen that in the first option of the platform, "View PDF", opening the web on a smartphone, you cannot see the button to open a pdf, the box to start the file explorer and be able to choose a pdf from the smartphone does not appear. Would this be solved with the full responsive mode by being able to install the platform as a web app on Android or iOS? If it has nothing to do with the first option, I understand that you can reposition the button to open the PDF?

Thanks again for this amazing project that really already surpasses the name of "project" and is on its way to productivity app of the year!!

NexusEFR avatar Jan 15 '24 15:01 NexusEFR

To answer your first question, Stirling PDF is hosted and needs a server. It is possible to package the entire server into a mobile app, but that probably wouldn't be practical. Another possibility is to make it a PWA, but that would require splitting up the client and server code. This is definitely possible since the API endpoints are exposed, but would require quite a bit of work.

I'm not sure what you mean by the second question. If you mean the "open file" button, you can press the expand (>>) button to view it if it doesn't show up. I am able to access it that way from my phone.

sbplat avatar Jan 18 '24 21:01 sbplat

Hello, sorry, I think I have not explained myself well or did not understand what I wanted to say in the first question.

I'm not talking about installing the StirlingPDF server on the smartphone, but being installed in docker on a server or nas (in my case everything runs under Unraid), when a connection to the server is established in the url by the smartphone's internet browser (Chrome, Edge, Firefox.. etc) the website gives you the option to "install" that platform as a pseudo-app. Even in browsers on a computer, there is also the option to install the website as an app when you open the platform with the URL.

There are other web platforms that give you the option in the internet browser to create the web as an app by tapping on the 3 dots in the browser's settings menu. I'm putting some screenshots to make it clearer.

image

And with regard to the second question. I still can't see the button to open a pdf or file in Chrome and in the native browser on an Android (Samsung), I don't see the option on the whole screen.

Edit: I was just going to capture to explain it, and suddenly the sample pdf opened where it is reported how to open pdfs to see them, I don't understand why I have used the option many times from the mobile but nothing appeared but it seems that leaving that tool open for a while loads the test document and it goes well.., Anyway, one less thing to review...

Thanks for the review, I'm starting to test the pipelines. Let's see if I can create monitored folders in Unraid.

Cheers and congratulations on the project.

NexusEFR avatar Jan 23 '24 09:01 NexusEFR

Yes, what you mean by "installing as an app" is called PWA. I'll look into this feature when I have some time.

sbplat avatar Jan 23 '24 14:01 sbplat