Static content such as image files and css files for Hybrid applications must be hosted on the Replay Server machine in order for BBR to retrieve them at replay time.
Perform the following steps to make static content for Native Hybrid applications available to BBR:
- In BBR, open the iOS or Android session that will replay the hybrid portion of the application.
- Switch to the Request view.
- Select a page that contains some UI events (in JSON format).
- In the JSON posts, locate the section that is similar to
what is shown in Figure 1.
Note: Take note of the values assigned to the appName and appVersion properties.
- Connect to the server that hosts the Replay Server component.
- Navigate to the Replay Server directory.
For example:
<home_folder>\ReplayServer\
- In the
ReplayServer
directory, create a folder and name it Apps. - In the Apps folder, create a folder
and name it according to the value assigned to appName as
shown in Figure 1.
For example, name the folder
HybridHTMLEmbedded
. - In the new application folder, create a folder and name it according to the value
assigned to appVersion as shown in the previous example.
For example, name the folder
10.0.0
. - In the new version folder, create a folder and name it
mobile_domcap
.Using the previous code as an example, the full directory path is:
<home_folder>\ReplayServer\Apps\HybridHTMLEmbedded\10.0.0\mobile_domcap.
- In the
mobile_domcap
folder, paste all of the static content required by the Hybrid application.For example:css
folderh5
folderimages
folder*.html
- Recycle the Replay Server.
- Make a new attempt to open an iOS or Android Hybrid session in BBR.