An app opened from the phone’s home screen has no browser bar, so there is no way back from an edit page. Warp Mobile puts a back button at the top left of every page that is not a tab.
1Back to where you were
The button goes back in the history, like the browser’s back button.
Try it
- In “Deliveries”, tap the card of Olivia Bennett.
- Her delivery opens. Look at the top left: “‹ Back” is there instead of the menu button.
- Tap “‹ Back”.
What happens
You are back on the list of deliveries. The list pages are tabs, so they have no back button.
By default the button shows only when the panel is opened from the home screen (the browser has its own back button otherwise). The demo uses backButton(always: true) so that you can see it in the frame.
The code
FilamentWarpMobilePlugin::make()
// Only in the app opened from the home screen:
->backButton()
// On every page that is not a tab, also in the browser:
->backButton(always: true)
2Opened from a link
When there is no page to go back to, the button opens the list of the resource.
Try it
- Click “Show this in the phone” below. The phone opens the delivery of Marcus Reed directly, with no page before it — as when someone opens a link from a message.
- Tap “‹ Back”.
What happens
The list of deliveries opens, not an empty page.
The code
// Nothing to write: with no page before it, the button
// opens the index page of the resource
Click to tap. To swipe or pull, press the mouse button and drag — the mouse works like a finger here.
You are on a phone
The phone frame is for computers. On your phone, open the app itself and follow the steps with your finger.
Open the app