Create a harness that defines the appearance of the mobile app page. By
using a harness layout that supports a mobile header, you build a user interface
container where you can reference the template with the native mobile
header.
The native header provides the users with a responsive interface that
is consistent across native apps and different devices.
-
On the Layout tab, in the Layout
section, hover over the Mobile - Slide Up application
layout, and then click Configure.
-
In the Configure layout dialog box, select the navigation
rule that you want to modify, and then click the Open
icon.
-
If you selected a default Pega Platform rule in step 2,
create a new instance of the navigation rule:
-
On the navigation rule form, on the Editor tab, select
the Validate for mobile bottom menu usage check
box.
To validate your navigation rule for bottom bar usage, Pega Platform checks whether the nodes in your form meet the
following requirements when you save the form:
Add a page with a harness that contains the native header to the bottom bar
of your app:-
In the navigation rule editor, select a node, and then add another node to the
list by clicking one of the following options:
-
Configure the new node to display a new page when the user taps the appropriate
button on the bottom bar of the mobile app:
Configure the harness to support the native header for your
page:-
On the Create harness form, specify the label, and then
click Create and open.
To ensure that Pega Platform validates the navigation rule
to work in your app, the Apply to and Add to
ruleset fields are populated with the class and ruleset of the
navigation rule.
-
On the Design tab, select the screen layout, and then
click the View properties icon.
-
In the Screen layout properties window, on the
General tab, select Header,
and then click Submit.
-
Expand the Structural list, and then drag
Embedded section onto the upper area of the screen
layout.
The upper area of the screen layout is the placeholder where you add elements
that constitute the header of the page in the mobile app.
-
Configure the design template with the native header:
-
In your harness rule form, in the Section include dialog
box, in the Section field, enter the name of the section
that you created, and then click Submit.
-
On the Advanced tab, in the Harness
usage section, select the Work area check
box.
-
On the Design tab, configure the main content of your
page by adding elements from the palette to the bottom area of the screen
layout.
For example: Add a section with customized greetings message and a Pulse gadget that is
referenced as an embedded section.
-
Click Save.
-
On the navigation rule form, in the Harness field, enter
the name of the harness that you created, and then click
OK.
-
Click Save.
Save the layout configuration of your mobile app:-
In the mobile channel interface, in the Configure layout
dialog box, select the navigation rule that you configured, and then click
OK.
Note: If you created a new instance of the navigation rule in step
3,
reopen the mobile channel interface to refresh the list of navigation rules
that you can use in the bottom bar of your app.
-
Click Save.