Linear Mobile Apps
Linear navigation is the default type of navigation for Mobile apps.
When you design a new mobile app, one of the first chocies to make is the type of navigation it should support: linear or tabbed. This page explains all you need to know about linear apps. For more information on tabbed apps, please refer to the relevant documentation page.
Linear Mobile Apps have a single navigation stack onto which new routes can be pushed. This stack can be walked backwards by using common controls to do so on both iOS and Android.
They also have support for an optional toolbar presented at the bottom of their screen, within which secondary actions can be presented to the user. A typical toolbar would include between one and five buttons which can trigger events such as navigation event or iwa/trigger_action events to, you guessed it, trigger any behaviour in the currently displayed IWA.

Example configuration

1
{
2
// ...
3
"navigation": {
4
"type": "linear",
5
"navigation_options": {
6
"linear": {
7
"launch_data": {
8
"webapp_id": "main_webapp"
9
}
10
}
11
}
12
}
13
}
Copied!
Last modified 3yr ago
Copy link