Single Folder routing / PWA Progressive Web App / Fullscreen

mes
Member | 8
+
0
-

I want to run my Nette App in fullscreen-mode without the browser-UI on mobile devices.
Due to the restrictions of iOS I need the user to add my side to the home screen. Therefore I created an manifest file.

But within this manifest file I need to define a scope. And as far as I understood, this is restricted to a single folder.

So far it's nearly working. Now, here is my Problem: Using a link, means changing the folder, changing the scope → the browser-UI appears.

How can I define a less strict scope within the manifest – or how can I route my app all within the root folder?

Or am I forced to realize all my app within a single presenter? Are server-side redirects possible?

Last edited by mes (2022-03-11 01:06)

MajklNajt
Member | 498
+
0
-

Hi, you can use the SimpleRouter

petr.pavel
Member | 535
+
0
-

When you say folder you mean a segment of a url path, right?
E.g. http://domain.name/path1/path2/path3 path1 – 3 are what you call folders, right?

It's up to you how you define your routes. You can use other characters instead of slashes to distinguish presenter names, their actions and parameters.