Hi! I would like to understand what can be a better strategy to make a navigation. I already made an app as web app working in a browser and mobile app for Android (I wrapped it in a code bought from WebViewGold).
Option 1
I made it as Single Page App. Only with the pages index, 404 and reset_pw. Created groups of each other inner pages. Initially each “page” group is hidden. There is a condition that it can be shown when there is a related to that page v parameter in the url.
And when there is a navigation to it I use the following workflow:
- “go to page” for example index
- “send more parameters to the page” - use v parameter to describe the page (v=home or v=task-create etc) so I send this v parameter to show the group
- “send more parameters to the page” - use i parameter to send the id of the current page or group - so I send the specific material parameters to the group that was shown
PRO:
I can use the buttons back and forward both in browser version and in mobile version of the app.
CONTRA:
Not nice ulrs. In the browser the address sooks not really cute like:
“MyApp dot App: premium domain name (Buy now) - myapp.app”
“MyApp dot App: premium domain name (Buy now) - myapp.app”
=========
Option 2
I recently checked the parameters of the page of Bubble where I can choose that this page is a native app page. “this page is a native app”
So there is recommended not to use navigation for app but to hide and show groups.
I tried that method
- “hide an element” i hide current group
- “show an element” i show the next group
- “display data in a popup/group” i send the data to another
PRO:
- I can set cleaner urls if I send slugs to the group
CONTRA
- I will not have the opportunity to use the buttons back and forward in browser and app navigation. I do not go to another page. I just hide and show groups.
=========
Option 3
I create a custom state for page index which is responsible for navigation. Let’s say the custom state looks like this:
Let’s say I have a page with all tasks and I want to see a particular task. Tasks to task-view. Task-view group is hidden by default and can be visible if the custom state of index nav is task-view.
So when I click the name of a particular task I start the following workflow:
PRO:
- I can have cleaner urls if I send slugs to the group
CONTRA
- I will not have the opportunity to use the buttons back and forward in browser and app navigation. I do not go to another page. I just hide and show groups.
So I have the following questions:
-
What bonuses with this option “this page is a native app” will I get additionally to the standard ones if I use “this page is a native app” option?
-
Concerning these pro and contra. Which way of navigation can be more optimal for you?
-
Is it possible somehow to make clean urls and use navigation button in browser and native app?